Part Number Hot Search : 
MAX5097B KCQ60A04 NUD3160 29GL256 1N4257 IRFAC42R PEB2060 C2518A
Product Description
Full Text Search
 

To Download PSB2168 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ics for communications digital answering machine sam psb 2168 version 2.1 data sheet 11.97 ds 1
psb 2168 revision history: current version: 11.97 previous version: preliminary data sheet 09.97 page (in previous version) page (in new version) subjects (major changes since last revision) index added for questions on technology, delivery and prices please contact the semiconductor group offices in germany or the siemens companies and representatives worldwide: see our webpage at http://www.siemens.de/semiconductor/address/address.htm. edition 11.97 published by siemens ag, hl ts, balanstra?e 73, 81541 mnchen ? siemens ag 1997. all rights reserved. attention please! as far as patents or other rights of third parties are concerned, liability is only assumed for components, not for applications, processes and circuits implemented within components or assemblies. the information describes the type of component and shall not be considered as assured characteristics. terms of delivery and rights to change design reserved. due to technical requirements components may contain dangerous substances. for information on the types in question please contact your nearest siemens office, semiconductor group. siemens ag is an approved cecc manufacturer. packing please use the recycling operators known to you. we can also help you C get in touch with your nearest sales office. by agreement we will take packing material back, if it is sorted. you must bear the costs of transport. for packing material that is returned to us unsorted or which we are not obliged to accept, we shall have to invoice you for any costs incurred. components used in life-support devices or systems must be expressly authorized for such purpose! critical components 1 of the semiconductor group of siemens ag, may only be used in life-support devices or systems 2 with the express written approval of the semiconductor group of siemens ag. 1 a critical component is a component used in a life-support device or system whose failure can reasonably be expected to cause the failure of that life-support device or system, or to affect its safety or effectiveness of that device or system. 2 life support devices or systems are intended (a) to be implanted in the human body, or (b) to support and/or maintain and sustain human life. if they fail, it is reasonable to assume that the health of the user may be en- dangered.
psb 2168 semiconductor group 3 11.97 1 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 1.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 1.2 pin configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12 1.3 pin definitions and functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 1.4 logic symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 1.5 functional block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 1.6 system integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 1.6.1 stand-alone answering machine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 2 functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 2.1 functional units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 2.1.1 line echo canceller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 2.1.2 dtmf detector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 2.1.3 cng detector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27 2.1.4 alert tone detector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 2.1.5 cpt detector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 2.1.6 caller id decoder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 2.1.7 dtmf generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 2.1.8 speech coder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34 2.1.9 speech decoder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36 2.1.10 digital interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37 2.1.11 universal attenuator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39 2.1.12 automatic gain control unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40 2.1.13 equalizer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42 2.2 memory management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44 2.2.1 file definition and access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 2.2.2 user data word . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47 2.2.3 high level memory management commands . . . . . . . . . . . . . . . . . . . . .48 2.2.4 low level memory management commands . . . . . . . . . . . . . . . . . . . . . .56 2.2.5 execution time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58 2.2.6 special notes on file commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59 2.3 miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60 2.3.1 real time clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60 2.3.2 sps control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60 2.3.3 reset and power down mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60 2.3.4 interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61 2.3.5 abort . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62 2.3.6 revision register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63 2.3.7 hardware configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63 2.3.8 auxiliary clock generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 2.3.9 dependencies of modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 2.4 interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 2.4.1 iom ? -2 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66
psb 2168 semiconductor group 4 11.97 2.4.2 ssdi interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .70 2.4.3 serial control interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72 2.4.4 memory interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76 2.4.5 auxiliary parallel port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .85 3 detailed register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87 3.1 status register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87 3.2 hardware configuration registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89 3.3 read/write registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93 3.3.1 register table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93 3.3.2 register naming conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .94 4 electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .160 4.1 absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .160 4.2 dc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .160 4.3 ac characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .162 5 package outlines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .182 iom ? , iom ? -1, iom ? -2, sicofi ? , sicofi ? -2, sicofi ? -4, sicofi ? -4c, slicofi ? , arcofi ? , arcofi ? -ba, arcofi ? -sp, epic ? -1, epic ? -s, elic ? , ipat ? -2, itac ? , isac ? -s, isac ? -s te, isac ? -p, isac ? -p te, idec ? , sicat ? , octat ? -p, quat ? -s are registered trademarks of siemens ag. digitape ? , musac ? -a, falc ? 54, iwe ? , sare ? , utpt ? , asm ? , asp ? are trademarks of siemens ag.
psb 2168 list of figures page semiconductor group 5 11.97 general figure 1: pin configuration of psb 2168. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 figure 2: logic symbol of psb 2168. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 figure 3: block diagram of psb 2168 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 figure 4: featurephone with answering machine for isdn terminal . . . . . . . . . . . 18 figure 5: stand-alone answering machine with aram/eprom . . . . . . . . . . . . . . 19 figure 6: stand-alone answering machine with flash memory . . . . . . . . . . . . . . . 20 functional units figure 7: functional units - overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 figure 8: functional units - recording a phone conversation . . . . . . . . . . . . . . . . 23 figure 9: line echo cancellation unit - block diagram. . . . . . . . . . . . . . . . . . . . . . 24 figure 10: dtmf detector - block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 figure 11: cng detector - block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 figure 12: alert tone detector - block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 figure 13: cpt detector - block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 figure 14: cpt detector - cooked mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 figure 15: caller id decoder - block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 figure 16: dtmf generator - block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 figure 17: speech coder - block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 figure 18: speech decoder - block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 figure 19: digital interface - block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 figure 20: universal attenuator - block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 figure 21: automatic gain control unit - block diagram . . . . . . . . . . . . . . . . . . . . . 40 figure 22: automatic gain control unit - steady state characteristic . . . . . . . . . . . 40 figure 23: equalizer - block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 memory management figure 24: memory management - data flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 figure 25: memory management - directory structure . . . . . . . . . . . . . . . . . . . . . . . 44 figure 26: audio file organization - example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 figure 27: binary file organization - example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 figure 28: phrase file organization - example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 miscellaneous figure 29: operation modes - state chart. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 interfaces figure 30: iom ? -2 interface - frame structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 figure 31: iom ? -2 interface - frame start. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 figure 32: iom ? -2 interface - single clock mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 figure 33: iom ? -2 interface - double clock mode . . . . . . . . . . . . . . . . . . . . . . . . . . 68 figure 34: ssdi interface - transmitter timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
psb 2168 list of figures page semiconductor group 6 11.97 figure 35: ssdi interface - active pulse selection . . . . . . . . . . . . . . . . . . . . . . . . . . 71 figure 36: ssdi interface - receiver timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 figure 37: status register read access. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 figure 38: data read access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 figure 39: register write access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 figure 40: configuration register read access . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 figure 41: configuration register write access or register read command . . . . . 74 figure 42: aram/dram interface - connection diagram. . . . . . . . . . . . . . . . . . . . . 77 figure 43: aram/dram interface - read cycle timing . . . . . . . . . . . . . . . . . . . . . . 78 figure 44: aram/dram interface - write cycle timing . . . . . . . . . . . . . . . . . . . . . . 79 figure 45: aram/dram interface - refresh cycle timing . . . . . . . . . . . . . . . . . . . . 79 figure 46: eprom interface - connection diagram . . . . . . . . . . . . . . . . . . . . . . . . . 80 figure 47: eprom interface - read cycle timing . . . . . . . . . . . . . . . . . . . . . . . . . . 80 figure 48: flash memory interface - connection diagram . . . . . . . . . . . . . . . . . . . . 81 figure 49: flash memory interface - multiple devices . . . . . . . . . . . . . . . . . . . . . . . 82 figure 50: flash memory interface - command write. . . . . . . . . . . . . . . . . . . . . . . . 83 figure 51: flash memory interface - address write . . . . . . . . . . . . . . . . . . . . . . . . . 83 figure 52: flash memory interface - data write . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 figure 53: flash memory interface - data read . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 figure 54: auxiliary parallel port - multiplex mode . . . . . . . . . . . . . . . . . . . . . . . . . . 86 electrical characteristics figure 55: input/output waveforms for ac-tests . . . . . . . . . . . . . . . . . . . . . . . . . . 162 timing diagrams figure 56: oscillator circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 figure 57: ssdi/iom ? -2 interface - bit synchronization timing . . . . . . . . . . . . . . . 167 figure 58: ssdi/iom ? -2 interface - frame synchronization timing . . . . . . . . . . . . 167 figure 59: ssdi interface - strobe timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169 figure 60: serial control interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 figure 61: clock master timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 figure 62: memory interface - dram read access . . . . . . . . . . . . . . . . . . . . . . . . 172 figure 63: memory interface - dram write access . . . . . . . . . . . . . . . . . . . . . . . . 173 figure 64: memory interface - dram refresh cycle . . . . . . . . . . . . . . . . . . . . . . . 174 figure 65: memory interface - eprom read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175 figure 66: memory interface - samsung command write . . . . . . . . . . . . . . . . . . . 176 figure 67: memory interface - samsung address write . . . . . . . . . . . . . . . . . . . . . 177 figure 68: memory interface - samsung data write . . . . . . . . . . . . . . . . . . . . . . . . 178 figure 69: memory interface - samsung data read . . . . . . . . . . . . . . . . . . . . . . . . 179 figure 70: auxiliary parallel port - multiplex mode . . . . . . . . . . . . . . . . . . . . . . . . . 180 figure 71: reset timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
psb 2168 list of tables page semiconductor group 7 11.97 general table 1: pin definitions and functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 functional units table 2: signal summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22 table 3: line echo cancellation unit registers . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 table 4: dtmf detector control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 table 5: dtmf detector results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 table 6: dtmf detector parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 table 7: cng detector registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27 table 8: cng detector result . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27 table 9: alert tone detector registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 table 10: alert tone detector results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 table 11: cpt detector result. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30 table 12: cpt detector registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30 table 13: caller id decoder modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 table 14: caller id decoder status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 table 15: caller id decoder registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 table 16: dtmf generator registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 table 17: speech coder status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34 table 18: speech coder registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 table 19: speech decoder registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36 table 20: digital interface registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37 table 21: universal attenuator registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39 table 22: automatic gain control registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41 table 23: equalizer registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42 memory management - general table 24: memory management registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46 table 25: memory management status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46 table 26: memory management parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47 memory management - commands table 27: initialize memory parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48 table 28: initialize memory results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48 table 29: activate memory parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 table 30: activate memory results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 table 31: activate memory result interpretation . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 table 32: open file parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50 table 33: open next free file parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50 table 34: open next free file results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 table 35: seek parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 table 36: cut file parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52
psb 2168 semiconductor group 8 11.97 table 37: compress file parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52 table 38: memory status parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53 table 39: memory status results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53 table 40: garbage collection parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53 table 41: access file descriptor parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54 table 42: access file descriptor results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54 table 43: read data parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54 table 44: read data results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54 table 45: write data parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 table 46: set address parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 table 47: dma read parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 table 48: dma read results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 table 49: dma write parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 table 50: block erase parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 table 51: execution times . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58 miscellaneous table 52: real time clock registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60 table 53: sps registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60 table 54: power down bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61 table 55: interrupt source summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62 table 56: hardware configuration checklist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63 table 57: auxiliary clock generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 table 58: dependencies of modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 table 59: file command classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65 interfaces table 60: ssdi vs. iom ? -2 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 table 61: iom ? -2 interface registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .68 table 62: ssdi interface register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .71 table 63: command words for register access . . . . . . . . . . . . . . . . . . . . . . . . . . . .75 table 64: address field w for configuration register write . . . . . . . . . . . . . . . . . . .75 table 65: address field r for configuration register read . . . . . . . . . . . . . . . . . . .75 table 66: supported memory configurations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76 table 67: address line usage (aram/dram mode) . . . . . . . . . . . . . . . . . . . . . . . .78 table 68: refresh frequency selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79 table 69: address line usage (samsung mode). . . . . . . . . . . . . . . . . . . . . . . . . . . .81 table 70: flash memory command summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82 table 71: static mode registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .85 table 72: multiplex mode registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .85 table 73: signal encoding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95
psb 2168 semiconductor group 9 11.97 electrical characteristics table 74: status register update timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .165
semiconductor group 10 11.97 psb 2168 overview 1overview general general the psb 2168 provides a solution for an embedded answering in an iom ? -2 based system. the chip features recording by digitape ? , a family of high performance algorithms. messages recorded with digitape ? can be played back with variable speed without pitch alteration. messages recorded with a higher bitrate can be converted into messages with a lower bitrate arbitrarily. current members of digitape (tm) span the range from 3.3 kbit/s to 10.3 kbit/s. furthermore the psb 2168, v2.1 has a a caller id decoder, dtmf recognition and generation and call progress tone detection. the frequency response of cheap microphones or loudspeakers can be corrected by a programmable equalizer. messages and user data can be stored in aram/dram or flash memory which can be directly connected to the psb 2168. the psb 2168 also supports a voice prompt eprom for fixed announcements. the psb 2168 provides an iom ? -2 compatible interface with two channels for speech data. alternatively to the iom ? -2 compatible interface the psb 2168 supports a simple serial data interface (ssdi) with separate strobe signals for each direction (linear pcm data, one channel). the chip is programmed by a simple four wire serial control interface and can inform the microcontroller of new events by an interrupt signal. for data retention the psb 2168 supports a power down mode where only the real time clock and the memory refresh (in case of aram/dram) are operational. the psb 2168 supports interface pins to +5 v levels.
p-mqfp-80 semiconductor group 11 11.97 digital answering machine sam psb 2168 version 2.1 cmos type package psb 2168 p-mqfp-80 1.1 features digital functions ? high performance recording by digitape ? ? selectable compression rate (3.3 kbit/s, 10.3 kbit/s) ? variable playback speed ? support for aram or flash memory ? optional voice prompt eprom ? dtmf generation and detection ? call progress tone detection ? caller id recognition ? direct memory access ? real time clock ? equalizer ? automatic gain control ? automatic timestamp ? auxiliary parallel port ? ultra low power refresh mode general features ? ssdi/iom ? -2 compatible interface ? serial control interface for programming ? master clock generation for common codecs
psb 2168 overview semiconductor group 12 11.97 1.2 pin configuration (top view) figure 1 pin configuration of psb 2168 110 20 21 30 40 41 60 50 61 70 80 v dda xtal 1 xtal 2 osc 1 osc 2 v ssa sclk sdr v dd ro v ss v dd v ss v dd v ss afefs afeclk fsc du/dx dd/dr dxst drst v dd v ss dcl w /fwe frdy vprd /fcle ras /foe cas 1 /fcs sps 0 sps 1 v dd v ss md 1 md 2 ma 3 ma 2 ma 1 ma 0 md 7 md 6 md 5 md 4 md 3 v dd v ss v dd v ss v ss v ss ro v dd ma 4 ma 5 ma 6 v dd ma 8 v ss ma 15 v ss ma 7 ma 9 ma 10 v dd ma 12 ma 13 ma 14 v ss ma 11 v ddp rst clk v ss md 0 v ddp int sdx cs cas 0 /ale sam psb 2168
psb 2168 overview semiconductor group 13 11.97 1.3 pin definitions and functions table 1 pin definitions and functions pin no. p-mqfp-80 symbol dir. reset function 41, 80 v ddp -- power supply (5v %) power supply for the interface. 7, 15, 21, 29, 39, 49, 58, 61, 67, 73 v dd -- power supply (3.0 v - 3.6 v ) power supply for logic. 1 v dda -- power supply (3.0 v - 3.6 v) power supply for clock generator. 4 v ssa -- power supply (0 v) ground for clock generator. 9, 16,20, 22, 30, 40, 48, 57, 59, 60, 78, 66, 72 v ss -- power supply (0 v) ground for logic and interface. 17 afefs o l analog frontend frame sync: 8 khz frame synchronization signal for the analog front end. 18 afeclk o l analog frontend clock: clock signal for the analog front end. 79 rst i - reset: active high reset signal. 23 fsc i - data frame synchronization: 8 khz frame synchronization signal (iom ? -2 and ssdi mode). 24 dcl i - data clock: data clock of the serial data interface. 26 dd/dr i /od i - iom ? -2 compatible mode: receive data from iom ? -2 controlling device. ssdi mode: receive data of the strobed serial data interface. 10
psb 2168 overview semiconductor group 14 11.97 25 du/dx i /od o/ od - iom ? -2 compatible mode: transmit data to iom ? -2 controlling device. ssdi mode: transmit data of the strobed serial data interface. 27 dxst o l dx strobe: strobe for dx in ssdi interface mode. 28 drst i - dr strobe: strobe for dr in ssdi interface mode. 14 cs i- chip select: select signal of the serial control interface (sci). 11 sclk i - serial clock: clock signal of the serial control interface (sci). 13 sdr i - serial data receive: data input of the serial control interface (sci). 12 sdx o/ od h serial data transmit: data output of the serial control interface (sci). 10 int o/ od h interrupt new status available. 52 53 54 55 62 63 64 65 68 69 70 71 74 75 76 77 ma 0 ma 1 ma 2 ma 3 ma 4 ma 5 ma 6 ma 7 ma 8 ma 9 ma 10 ma 11 ma 12 ma 13 ma 14 ma 15 i/ o i/ o i/ o i/ o i/ o i/ o i/ o i/ o i/ o i/ o i/ o i/ o i/ o i/ o i/ o i/ o l 1) l l l l l l l l l l l l l l l memory address 0-15: multiplexed address outputs for aram, dram access. non-multiplexed address outputs for voice prompt eprom. auxiliary parallel port: general purpose i/o. table 1 pin definitions and functions
psb 2168 overview semiconductor group 15 11.97 42 43 44 45 46 47 50 51 md 0 md 1 md 2 md 3 md 4 md 5 md 6 md 7 i /o i /o i /o i /o i /o i /o i /o i /o - - - - - - - - memory data 0-7: memory (aram, dram, flash memory, eprom) data bus. 35 36 cas 0 / ale cas 1 / fcs o o h 2) aram, dram: column address strobe for memory bank 0 or 1. flash memory: address latch enable for address lines a 16 -a 23 . chip select signal for flash memory 34 ras / foe oh 2 ) aram, dram: row address strobe for both memory banks. flash memory: output enable signal for flash memory. 33 vprd / fcle oh 2 ) aram, dram: read signal for voice prompt eprom. flash memory: command latch enable for flash memory. 32 w /fwe oh 2 ) aram, dram: write signal for all memory banks. flash memory: write signal for flash memory. 31 frdy i - flash memory ready input for ready/busy signal of flash memory 5 6 osc 1 osc 2 i o - z auxiliary oscillator: oscillator loop for 32.768 khz crystal. 8clki- alternative afeclk source 13,824 mhz 2 3 xtal 1 xtal 2 i o - z oscillator: xtal 1 : external clock or input of oscillator loop. xtal 2 : output of oscillator loop for crystal. table 1 pin definitions and functions
psb 2168 overview semiconductor group 16 11.97 1.4 logic symbol 1 figure 2 logic symbol of psb 2168 1) these lines are driven low with 125 m a until the mode (address lines or auxiliary port) is defined. 2) these lines are driven high with 70 m a during reset. 37 38 sps 0 sps 1 o o l l multipurpose outputs: general purpose, address lines or status 19, 56 ro o - reserved output must be left open. table 1 pin definitions and functions du/dx dd/dr dcl fsc sdx sdr sclk cs iom ? -2 sci ma 0 -ma 15 md 0 -md 7 cas 0 / ale cas 1 / fcs foe ras / vprd / fcle w / fwe memory v dda v dd v ss osc 2 osc 1 xtal 1 xtal 2 rst sdi int frdy drst dxst psb 2168
psb 2168 overview semiconductor group 17 11.97 1.5 functional block diagram figure 3 block diagram of psb 2168 1.6 system integration the integration into an isdn terminal is shown in figure 4 . all voice data is transferred by the iom ?-2 compatible interface. the psb 2168 is programmed by the sci interface. the psb 2163 is programmed by the iom?-2 interface. the microcontroller can access the memory attached to the psb 2168. this is useful for storing system parameters or phonebook entries. du/dx dd/dr dcl fsc sdx sdr sclk cs ma 0 -ma 15 md 0 -md 7 cas 0 / ale cas 1 / fcs foe ras /vprd / fcle w / fwe osc 2 osc 1 xtal 1 xtal 2 rst dsp memory interface reset and timing unit data interface control interface int frdy dxst drst
psb 2168 overview semiconductor group 18 11.97 figure 4 featurephone with answering machine for isdn terminal flash psb 2168 microcontroller 077-3445 iom ? -2 s 0 -bus power controller peb 2023 psb 2163 psb 2186
psb 2168 overview semiconductor group 19 11.97 1.6.1 stand-alone answering machine the psb 2168 can also be used in conjunction with a simple codec for a stand-alone answering machine (figure 5 ). in this application the psb 2168 generates the necessary clocks for the simple codec at the pins afeclk and afefs. therefore the simple codec can be connected without further glue logic. figure 5 stand-alone answering machine with aram/eprom voice prompt aram eprom microcontroller 077-3445 line tip/ ring psb 2168 analog simple codec mux/amp clk tx tr fs dcl dr dx fsc afeclk afefs
psb 2168 overview semiconductor group 20 11.97 furthermore the psb 2168 can be used to scan the keyboard and drive the display if instead of aram/dram and eprom flash memory devices (samsung mode) are used for storage (figure 6 ). figure 6 stand-alone answering machine with flash memory in either case all features of the psb 2168 can be used (e.g. caller id). flash microcontroller 077-3445 line tip/ ring psb 2168 analog simple iom ? -2 afe codec mux/amp
psb 2168 functional description semiconductor group 21 11.97 2 functional description functional units functional units the psb 2168 contains several functional units that can be combined with almost no restrictions to perform a given task. figure 7 gives an overview of the important functional units. figure 7 functional units - overview ssdi/iom ? -2 iom ? -2 s 5 s 7 s 8 s 6 signal summation: signal sources: s 5 ,...,s 18 i 1 i 2 i 3 memory sci channel 2 channel 1 i 1 i 2 i 3 i 1 i 2 i 3 dtmf detector speech coder cid decoder speech decoder cpt detector s 13 i 1 i 1 i 1 i 2 i 1 alert tone detector cng detector i 1 i 1 attenuator line echo canceller i 1 i 2 s 15 agc i 1 i 2 s 17 equalizer i 1 s 18 s 16 universal i 1 s 14 s 10 s 9 dtmf generator
psb 2168 functional description semiconductor group 22 11.97 each unit has one or more signal inputs (denoted by i). most units have at least one signal output (denoted by s). any input i can be connected to any signal output s. in addition to the signals shown in figure 7 there is also the signal s 0 (silence), which is useful at signal summation points. table 2 lists the available signals within the psb 2168 according to their reference points. table 2 signal summary signal description s 0 silence s 1 reserved s 2 reserved s 3 reserved s 4 reserved s 5 serial interface input, channel 1 s 6 serial interface output, channel 1 s 7 serial interface input, channel 2 s 8 serial interface output, channel 2 s 9 dtmf generator output s 10 dtmf generator auxiliary output s 11 reserved s 12 reserved s 13 speech decoder output s 14 universal attenuator output s 15 line echo canceller output s 16 automatic gain control output (after gain stage) s 17 automatic gain control output (before gain stage) s 18 equalizer output
psb 2168 functional description semiconductor group 23 11.97 the following figures show the connections for a typical state during operation. units that are not needed are not shown. inputs that are not needed are connected to s 0 which provides silence (denoted by 0). in figure 8 a phone conversation is currently in progress. the speech coder is used to record the signals of both parties. the alert tone detector is used to detect an alerting tone of an off-hook caller id request while the cid decoder decodes the actual data transmitted in this case. figure 8 functional units - recording a phone conversation dtmf detector cid decoder cpt detector memory sci ssdi/iom ? -2 iom ? -2 s 7 s 5 channel 2 channel 1 000 000 speech coder agc
psb 2168 functional description semiconductor group 24 11.97 2.1 functional units in this section the functional units of the psb 2168 are described in detail. the functional units can be individually enabled or disabled. 2.1.1 line echo canceller the psb 2168 contains an adaptive line echo cancellation unit for the cancellation of near end echoes. the unit has two modes: normal and extended. in normal mode, the maximum echo length is 4 ms. this mode is always available. in extended mode, the maximum echo length is 24 ms. extended mode cannot be used while the speech encoder or slow playback is active. the line echo cancellation unit is especially useful in front of the various detectors (dtmf, cpt, etc.). a block diagram is shown in figure 9 . figure 9 line echo cancellation unit - block diagram the line echo canceller provides only one outgoing signal (s 15 ) as the other outgoing signal would be identical with the input signal i 1 . input i 2 is usually connected to the line input while input i 1 is connected to the outgoing signal. in normal mode the adaption process can be controlled by three parameters: min, att and mgn. adaption takes only place if both of the following conditions hold: 1. 2. with the first condition adaption to small signals can be avoided. the second condition avoids adaption during double talk. the parameter att represents the echo loss provided by external circuitry. the adaption stops if the power of the received signal (i2) exceeds the power of the expected signal (i1-att) by more than the margin mgn. + - s adaptive filter i 2 s 15 i 1 i1 min > i1 i2 Cattmgn + C0 >
psb 2168 functional description semiconductor group 25 11.97 table 3 shows the registers associated with the line echo canceller. table 3 line echo cancellation unit registers register # of bits name comment relevant mode lecctl 1 en line echo canceller enable both lecctl 1 md line echo canceller mode lecctl 5 i2 input signal selection for i 2 both lecctl 5 i1 input signal selection for i 1 both leclev 15 min minimal power for signal i 1 normal lecatt 15 att externally provided attenuation (i 1 to i 2 ) normal lecmgn 15 mgn margin for double talk detection normal
psb 2168 functional description semiconductor group 26 11.97 2.1.2 dtmf detector figure 10 shows a block diagram of the dtmf detector. the results of the detector are available in the status register and a dedicated result register that can be read via the serial control interface (sci) by the external controller. all sixteen standard dtmf tones are recognized. figure 10 dtmf detector - block diagram table 4 to 6 show the associated registers. as soon as a valid dtmf tone is recognized, the status word and the dtmf tone code are updated (table 5 ). dtv is set when a dtmf tone is recognized and reset when no dtmf tone is recognized or the detector is disabled. the code for the dtmf tone is placed into the register ddctl. the registers ddtw and ddlev hold parameters for detection (table 6 ). table 4 dtmf detector control register register # of bits name comment ddctl 1 en dtmf detector enable ddctl 5 i1 input signal selection table 5 dtmf detector results register # of bits name comment status 1 dtv dtmf code valid ddctl 5 dtc dtmf tone code table 6 dtmf detector parameters register # of bits name comment ddtw 15 twist twist for dtmf recognition ddlev 6 min minimum signal level to detect dtmf tones dtmf sci i 1 recognition
psb 2168 functional description semiconductor group 27 11.97 2.1.3 cng detector the calling tone (cng) detector can detect the standard calling tones of fax machines or modems. this helps to distinguish voice messages from data transfers. the result of the detector is available in the status register that can be read via the serial control interface (sci) by the external controller. the cng detector consists of two band-pass filters with fixed center frequency of 1100 hz and 1300 hz. figure 11 cng detector - block diagram table 7 shows the available parameters. both the programmed minimum time and the minimum signal level must be exceeded for a valid cng tone. furthermore the input signal resolution can be reduced by the res parameter. this can be useful in a noisy environment at low signal levels although the accuracy of the detection decreases. as soon as a valid tone is recognized, the status word of the psb 2168 is updated. the status bits are defined as follows: table 7 cng detector registers register # of bits name comment cngctl 1 en cng detector enable cngctl 5 i1 input signal selection cnglev 16 min minimum signal level cngbt 16 time minimum time of signal burst cngres 16 res input signal resolution table 8 cng detector result register # of bits name comment status 1 cng fax/modem calling tone detected cng detector sci i 1 1100 hz 1300 hz
psb 2168 functional description semiconductor group 28 11.97 2.1.4 alert tone detector the alert tone detector can detect the standard alert tones (2130 hz and 2750 hz) for caller id protocols. the results of the detector are available in the status register and the dedicated register atdctl0 that can be read via the serial control interface (sci) by the external controller. figure 12 alert tone detector - block diagram as soon as a valid alert tone is recognized, the status word of the psb 2168 and the code for the detected combination of alert tones are updated (table 10 ). table 9 alert tone detector registers register # of bits name comment atdctl0 1 en alert tone detector enable atdctl0 5 i1 input signal selection atdctl1 1 md detection of dual tones or single tones atdctl1 1 dev maximum deviation (0.5% or 1.1%) atdctl1 8 min minimum signal level to detect alert tones table 10 alert tone detector results register # of bits name comment status 1 atv alert tone detected atdctl0 2 atc alert tone code alert tone sci i 1 detector
psb 2168 functional description semiconductor group 29 11.97 2.1.5 cpt detector the selected signal is monitored continuously for a call progress tone. the cpt detector consists of a band-pass and an optional timing checker (figure 13 ). figure 13 cpt detector - block diagram the cpt detector can be used in two modes: raw and cooked. in raw mode, the occurrence of a signal within the frequency range, time and energy limits is directly reported. the timing checker is bypassed and therefore the psb 2168 does not interpret the length or interval of the signal. in cooked mode, the number and duration of signal bursts are interpreted by the timing checker. a signal burst followed by a gap is called a cycle. cooked mode requires a minimum of two cycles. the cpt flag is set with the first burst after the programmed number of cycles has been detected. the cpt flag remains set until the unit is disabled, even if the conditions are not met anymore. in this mode the cpt is modelled as a sequence of identical bursts separated by gaps with identical length. the psb 2168 can be programmed to accept a range for both the burst and the gap. it is also possible to specify a maximum aberration of two consecutive bursts and gaps. figure 14 shows the parameters for a single cycle (burst and gap). figure 14 cpt detector - cooked mode the status bit is defined as follows: timing band-pass sci (status) i 1 300-640 hz checker t bmax t bmin t gmin t gmax
psb 2168 functional description semiconductor group 30 11.97 cpt is not affected by reading the status word. it is automatically reset when the unit is disabled. table 12 shows the control register for the cpt detector. if any condition is violated during a sequence of cycles the timing checker is reset and restarts with the next valid burst. note: in cooked mode cpt is set with the first burst after the programmed number of cycles has been detected. note: the number of cycles must be set to zero in raw mode. table 11 cpt detector result register # of bits name comment status 1 cpt cp tone currently detected [340 hz; 640 hz] table 12 cpt detector registers register # of bits name comment cptctl 1 en unit enable cptctl 1 md mode (cooked, raw) cptctl 5 i1 input signal selection cptmn 8 minb minimum time of a signal burst (t bmin ) cptmn 8 ming minimum time of a signal gap (t gmin ) cptmx 8 maxb maximum time of a signal burst (t bmax ) cptmx 8 maxg maximum time of a signal gap (t gmax ) cptdt 8 difb maximum difference between consecutive bursts cptdt 8 difg maximum difference between consecutive gaps cpttr 3 num number of cycles (cooked mode), 0 (raw mode) cpttr 8 min minimum signal level to detect tones cpttr 4 sn minimal signal-to-noise ratio
psb 2168 functional description semiconductor group 31 11.97 2.1.6 caller id decoder the caller id decoder is basically a 1200 baud modem (fsk, demodulation only). the bit stream is formatted by a subsequent uart and the data is available in a data register along with status information (figure 15 ). figure 15 caller id decoder - block diagram the fsk demodulator supports two modes according to table 13 . the appropriate mode is detected automatically. the cid decoder does not interpret the data received. each byte received is placed into the cidctl register (table 15 ). the status byte of the psb 2168 is updated (table 14 ). cia and cd are cleared when the unit is disabled. in addition, cia is cleared when cidctl0 is read. table 13 caller id decoder modes mode mark (hz) space (hz) comment 1 1200 2200 bellcore 2 1300 2100 v.23 table 14 caller id decoder status register # of bits name comment status 1 cia cid byte received status 1 cd carrier detected table 15 caller id decoder registers register # of bits name comment cidctl0 1 en unit enable cidctl0 5 i1 input signal selection cidctl0 8 data last cid data byte received uart fsk demod. sci (status, data) i 1 (bellcore, v.23)
psb 2168 functional description semiconductor group 32 11.97 when the cid unit is enabled, it first waits for a channel seizure signal consisting of a series of alternating space and mark signals. the number of spaces and marks that have to be received without errors before the psb 2168 reports a carrier detect by setting status bit cd can be programmed. channel seizure must be followed by at least 16 continuous mark signals. the first space signal detected is then regarded as the start bit of the first message byte. the interpretation of the data, including message type, length and checksum is completely left to the controller. the cid unit should be disabled as soon as the complete information has been received as it cannot detect the end of the transmission by itself. note: some caller id mechanism may require additional external components for dc decoupling. these tasks must be handled by the controller. note: the controller is responsible for selecting and storing parts of the cid as needed. cidctl1 5 nmss number of mark/space sequences necessary for successful detection of carrier detect cidctl1 6 nmb number of mark bits necessary before space of first byte after carrier detect cidctl1 5 min minimum signal level for cid detection table 15 caller id decoder registers register # of bits name comment
psb 2168 functional description semiconductor group 33 11.97 2.1.7 dtmf generator the dtmf generator can generate single or dual tones with programmable frequency and gain. this unit is primarily used to generate the common dtmf tones but can also be used for signalling or other user defined tones. a block diagram is shown in figure 16 . figure 16 dtmf generator - block diagram both generators and amplifiers are identical. there are two modes for programming the generators, cooked mode and raw mode. in cooked mode, the standard dtmf frequencies are generated by programming a single 4 bit code. in raw mode, the frequency of each generator/amplifier can be programmed individually by a separate register. the unit has two outputs which provide the same signal but with individually programmable attenuation. table 16 shows the parameters of this unit. note: dgf1 and dgf2 are undefined when cooked mode is used and must not be written. table 16 dtmf generator registers register # of bits name comment dgctl 1 en enable for generators dgctl 1 md mode (cooked/raw) dgctl 4 dtc dtmf code (cooked mode) dgf1 15 frq1 frequency of generator 1 dgf2 15 frq2 frequency of generator 2 dgl 7 lev1 level of signal for generator 1 dgl 7 lev2 level of signal for generator 2 dgatt 8 att1 attenuation of s 9 dgatt 8 att2 attenuation of s 10 f 1 f 2 generator generator gain1 gain2 att2 s 9 s 10 att1
psb 2168 functional description semiconductor group 34 11.97 2.1.8 speech coder the speech coder (figure 17 ) has two input signals i 1 and i 2 . the first signal (i 1 ) is fed to the coder while the second signal (i2) is used as a reference signal for voice controlled recording. the signal i 1 can be coded by either a high quality coder or a long play coder. figure 17 speech coder - block diagram in high quality the output data stream runs at a fixed rate of 10300 bit/s and provides excellent speech quality. in long play mode, the output data stream is further reduced to an average of 3300 bit/s while still maintaining good quality. data is written starting at the current file pointer and the file pointer is advanced as needed. in case of any memory error (e.g. memory full) a file error is indicated and the coder is disabled. the controller must subsequently close the file. the coder can be switched on the fly. however, it may take up to 60 ms until the switch is executed. the controller must therefore wait for at least this time until issuing another command that relies on the mode switch. no audio data is lost during switching. the signal i 2 is first filtered by a low pass lp1 with programmable time constant and then compared to a reference level min. if the filtered signal exceeds min, then the status bit sd (table 17 ) is set immediately. if the filtered signal has been smaller than min for a programmable time time then the status bit sd is reset. the coder can be enabled in permanent mode or in voice recognition mode. in permanent mode, the coder starts immediately and compresses all input data continuously. the current state of the status bit sd does not affect the coder. in voice recognition mode, the coder is automatically started on the first transition of the status bit from 0 to 1. once the coder has started it remains active until disabled. table 17 speech coder status register # of bits name comment status 1 sd speech detected hq 10300 bit/s lp 3300 bit/s i 2 i 1 memory min lp
psb 2168 functional description semiconductor group 35 11.97 the operation of the speech coder is defined according to table 18 . note: the peak data rate in lp mode is 4800 bit/s. note: both hq and lp mode will not produce identical bit streams after a coding/ decoding cycle. table 18 speech coder registers register # of bits name comment scctl 1 en enable speech coder scctl 1 hq high quality mode scctl 1 vc voice controlled recording scctl 5 i1 input signal 1 selection scctl 5 i2 input signal 2 selection scct2 8 min minimal signal level for speech detection scct2 8 time minimum time for reset of sd scct3 8 lp time constant for low-pass
psb 2168 functional description semiconductor group 36 11.97 2.1.9 speech decoder the speech decoder (figure 18 ) decompresses the data previously coded by the speech coder unit and delivers a standard 128 kbit/s data stream. figure 18 speech decoder - block diagram the decoder supports fast (1.5 and 2.0 times) and slow (0.5 times) motion independent of the selected quality. the decoder requests input data as needed at a variable rate. table 19 shows the signal and mode selection for the speech decoder. data reading starts at the location of the current file pointer. the file pointer is updated during speech decoding. if the end of the file is reached, the decoder is automatically disabled. the psb 2168 automatically resets sdctl:en at this point. table 19 speech decoder registers register # of bits name comment sdctl 1 en enable speech decoder sdctl 2 speed selection of playback speed hq 10300 bit/s lp 3300 bit/s s 13 memory
psb 2168 functional description semiconductor group 37 11.97 2.1.10 digital interface there are two almost identical interfaces at the digital side as shown in figure 19 . the only difference between these two interfaces is that only channel 1 supports the ssdi mode. figure 19 digital interface - block diagram each outgoing signal can be the sum of two signals with no attenuation and one signal with programmable attenuation (att). the attenuator can be used for artificial echo if there is none externally provided (e.g. isdn application). each input can be passed through an optional high-pass (hp). the associated registers are shown in table 20 . table 20 digital interface registers register # of bits name comment ifs3 5 i1 input signal 1 for s 6 ifs3 5 i2 input signal 2 for s 6 ifs3 5 i3 input signal 3 for s 6 ifs3 1 hp high-pass for s 5 ifs4 5 i1 input signal 1 for s 8 ifs4 5 i2 input signal 2 for s 8 ifs4 5 i3 input signal 3 for s 8 ifs4 1 hp high-pass for s 7 channel 2 (iom ? -2 interface) channel 1 (ssdi/iom ? -2 interface) s 7 s 8 i 1 i 2 i 3 att2 hp s 5 s 6 i 1 i 2 i 3 att1 hp
psb 2168 functional description semiconductor group 38 11.97 ifg5 8 att1 attenuation for input signal i3 (channel 1) ifg5 8 att2 attenuation for input signal i3 (channel 2) table 20 digital interface registers register # of bits name comment
psb 2168 functional description semiconductor group 39 11.97 2.1.11 universal attenuator the psb 2168 contains an universal attenuator that can be connected to any signal (e.g. for sidetone gain in isdn applications). figure 20 universal attenuator - block diagram table 21 shows the associated register. table 21 universal attenuator registers register # of bits name comment ua 8 att attenuation for ua ua 5 i1 input signal for ua s 14 ua i 1
psb 2168 functional description semiconductor group 40 11.97 2.1.12 automatic gain control unit in addition to the universal attenuator with programmable but fixed gain the psb 2168 contains an amplifier with automatic gain control (agc). the agc is preceeded by a signal summation point for two input signals. one of the input signals can be attenuated. figure 21 automatic gain control unit - block diagram furthermore the signal after the summation point is available. besides providing a general signal summation (s 16 not used) this signal is especially useful if the agc unit provides the input signal for the speech coder. in this case s 17 can be used as a reference signal for voice controlled recording. operation of the agc depends on a threshold level defined by the parameter com (value relative to the maximum pcm-value). the bold line in figure 22 depicts the steady-state output level of the agc as a function of the input level. figure 22 automatic gain control unit - steady state characteristic s 16 agc i 1 att i 2 s 17 com ag_att ag_gain agc input level agc output level max. pcm -10 db -20 db -10 db -20 db example: com ag_gain ag_att = = = -30 db 15 db 20 db
psb 2168 functional description semiconductor group 41 11.97 the regulation speed is controlled by speedh for signal amplitudes above the threshold and speedl for amplitudes below. usually speedh will be chosen to be at least 10 times faster than speedl. the agc reacts faster for higher values of speedh (speedl). the current gain/attenuation of the agc can be read at any time. an additional low pass with time constant lp is provided to avoid an immediate response of the agc to very short signal bursts. furthermore the agc contains a comparator that starts and stops the gain regulation. the signal after the summation point (s17) is filtered by a peak detector with time constant dec for decay. then the signal is compared to a programmable limit lim. regulation takes only place when the filtered signal exceeds the limit. table 22 shows the associated registers. table 22 automatic gain control registers register # of bits name comment agcctl 1 en enable agcctl 5 i1 input signal 1 for agc agcctl 5 i2 input signal 2 for agc agcatt 15 att attenuation for i 2 agc1 8 ag_init initial agc gain/attenuation agc1 8 com compare level rel. to max. pcm-value agc2 8 speedl change rate for lower levels agc2 8 speedh change rate for higher level agc3 8 ag_att attenuation range agc3 7 ag_gain gain range agc4 7 dec peak detector time constant agc4 8 lim comparator minimal signal level agc5 7 lp agc low pass time constant
psb 2168 functional description semiconductor group 42 11.97 2.1.13 equalizer the psb 2168 also provides an equalizer that can be inserted into any signal path. the main application for the equalizer is the adaption to the frequency characteristics of the microphone, transducer or loudspeaker. the equalizer consists of an iir filter followed by an fir filter as shown in figure 23 . figure 23 equalizer - block diagram the coefficients a 1 -a 9 , b 2 -b 9 and c 1 belong to the iir filter, the coefficients d 1- d 17 and c 2 belong to the fir filter. table 23 shows the registers associated with the equalizer. table 23 equalizer registers register # of bits name comment fcfctl 1 en enable fcfctl 5 i input signal for equalizer fcfctl 6 adr filter coefficient address fcfcof 16 filter coefficient data z -1 z -1 z -1 a1 a2 a9 z -1 z -1 z -1 c1 b2 b9 z -1 z -1 z -1 d1 d2 d17 c2 s 18 i fir iir
psb 2168 functional description semiconductor group 43 11.97 due to the multitude of coefficients the psb 2168 uses an indirect addressing scheme for reading or writing an individual coefficient. the address of the coefficient is given by adr and the actual value is read or written to register fcfcof. in order to ease programming the psb 2168 automatically increments the address adr after each access to fcfcof. note: any access to an out-of-range address automatically resets fcfctl:adr.
psb 2168 functional description semiconductor group 44 11.97 2.2 memory management memory management memory management - general this section describes the memory management provided by the psb 2168. as figure 24 shows, three units can access the external memory. during recording, the speech coder can write compressed speech data into the external memory. for playback, the speech decoder reads compressed speech data from external memory. in addition, the microcontroller can directly access the memory by the sci interface. figure 24 memory management - data flow the memory is organized as a file system. for each memory space (r/w-memory and voice prompt memory) the psb 2168 maintains a directory with 255 file descriptors (figure 25 ). figure 25 memory management - directory structure the directories must be created after each power failure for volatile r/w-memory. all file descriptors are cleared (all words zero). for non-volatile memory, the directories have to speech decoder speech coder memory sci length (0-65535) user data (16 bits) file descriptor 1 file descriptor 255 file descriptor n file descriptor (r/w) directory rtc1 (16 bits) rtc2 (16 bits)
psb 2168 functional description semiconductor group 45 11.97 be created only once. if the directories already exist, the memory has just to be activated after a reset. the file descriptors are not changed in this case. all commands that access the other fields or involve a write access must not be used in voice prompt memory space. 2.2.1 file definition and access a file is a linear sequence of units and can be accessed in two modes: binary and audio. in binary mode, a unit is a word. in audio mode, a unit is a variable number of words representing 30 ms of uncompressed speech. a file can contain at most 65535 units. figure 26 shows an audio file containing 100 audio units. the length of the message is therefore 3 s. figure 26 audio file organization - example figure 27 shows a binary file of 11 words containing a phonebook (with only two entries). figure 27 binary file organization - example there is one special file in the voice prompt directory (referenced by file number 255) which is intended for a large number of phrases and hence has a different organization.this file exists only in the directory for the voice prompt memory. it consists of up to 2048 phrases of arbitrary individual length. the actual number of units within an individual phrase is determined during creation and cannot be altered afterwards. phrases can be combined in any sequence without intermediate noise or gaps. hi jack, this is tom. please call me back tomorrow. 0 99 3 s 544f 4d20 3535 3534 3330 004a 4143 4b20 5555 5538 3131 to 010 1 m 555430 jack 555811
psb 2168 functional description semiconductor group 46 11.97 figure 28 shows a phrase file containing a total of five phrases. figure 28 phrase file organization - example before an access to a file can take place, the file must be opened with the following information: 1. memory space (messages or voice prompts) 2. file number 3. access mode these parameters remain effective until the next open command is given or, in case of the file pointer, until a file access. all other files are closed and cannot be accessed. the file with file number 0 is not a physical file. opening this file closes all physical files. the psb 2168 provides four registers for file access and two bits within the status register. table 24 shows these registers. the status register contains two flags (table 25 ) to indicate if currently a file command is under execution and if the last file command terminated without error. a new command must not be written to fcmd while the last one is still running (status:bsy=1). the only command that can be aborted is compress file. table 24 memory management registers register # of bits comment fcmd 16 command to execute fctl 16 access mode and file number fdata 16 data transfer and additional parameters fptr 16 (11) file pointer (phrase selector) status 16 busy and error indication table 25 memory management status register # of bits name comment status 1 bsy file command or decoder/encoder still running status 1 err file command completed/aborted with error one two you have messages left friday 01 4
psb 2168 functional description semiconductor group 47 11.97 writing to fcmd also resets the error bit in the status register. table 26 shows the parameters defining the access mode and the access location. all parameters can only be written when no file command is currently running. they become effective after the completion of an open command. if another unit (e.g. speech coder) accesses the file, the file pointer is updated automatically. therefore the controller can monitor the progress of recording or playing by reading the file pointer. commands are written to the fcmd register. the busy bit in the status register is set within 125 m s. the command may start execution after a delay, however (see section 2.2.5 ). some commands require additional parameters which are written prior to the command into the specified registers. data transfer is done by the register fdata (both reading and writing). 2.2.2 user data word the user data word consists of 12 bits that can be read or written by the user, two bits (r) that are reserved for future use and two read-only bits (d,m) which indicate the status of a file. if d is set, the file is marked for deletion and should not be used any more. this bit is maintained by the psb 2168 for housekeeping. table 26 memory management parameters register # of bits name comment fctl 1 ms memory space (r/w or voice prompt) fctl 1 md access mode (audio or binary) fctl 1 ts write timestamp (file open only) fctl 8 fno file number (active file) fptr 16 file pointer or phrase selector 15 0 d m r r user definable
psb 2168 functional description semiconductor group 48 11.97 2.2.3 high level memory management commands this section describes each of the high level memory management commands in detail. these commands are sufficient for normal operation of an answering machine. in addition, there are four low level commands (section 2.2.4 ). these commands are only required for special tasks like in-system reprogramming of the voice prompt area. memory management - commands 2.2.3.1 initialize this command creates a directory, sets the external memory configuration and delivers the size of usable memory in 1 kbyte blocks. furthermore the voice prompt memory space is scanned for a valid directory. the psb 2168 can either create an empty directory from scratch or leave the first n files of an existing directory untouched while deleting the remaining files (aram/dram only). this option is useful if due to an unexpected event (e.g. power loss during recording) some data is corrupted. in that case vital system information can still be recovered if it has been stored in the first files. possible errors: ? no r/w memory found ? more than 59 bad blocks (flash and aram) ? voice prompt directory requested, but not detected note: this command must be given only once for flash devices. table 27 initialize memory parameters register # of bits name comment fcmd 5 cmd initialize command code fcmd 1 in confirmation for initialization fctl 8 fno 0: delete no file 1: delete all files n: delete starting with file n cctl 2 mt type of r/w memory (dram, flash) cctl 1 mq quality of r/w memory (audio, normal) cctl 1 mv scan for voice prompt directory table 28 initialize memory results register # of bits name comment fdata 16 number of usable 1kbyte blocks in r/w memory
psb 2168 functional description semiconductor group 49 11.97 2.2.3.2 activate this command activates an existing directory, sets the external memory configuration and delivers the size of usable memory in 1 kbyte blocks. furthermore the voice prompt memory space is scanned for a valid directory. upon activation the psb 2168 checks (in case of aram/dram only) the consistency of the directory in r/w memory space. it returns the first file that contains corrupted data (if any). if corrupted data is detected an initialization should be performed with the same file number as an input parameter. possible error conditions: ? no memory connected ? no directory found ? device id wrong (flash only) ? corrupted files found (see fctl:fno) ? directory corrupted this command can have three types of result as shown in table 31 . table 29 activate memory parameters register # of bits name comment fcmd 5 cmd activate command code cctl 2 mt type of r/w memory (dram, flash) cctl 1 mq quality of r/w memory (audio, normal) cctl 1 mv voice prompt directory available table 30 activate memory results register # of bits name comment fdata 16 number of usable 1 kbyte blocks in r/w memory fctl 8 fno n: number of first corrupted file table 31 activate memory result interpretation result status: err fctl: fno comment no error 0 0 command successful, memory activated. soft error 1 n the first n-1 files are o.k. the memory is activated. hard error 1 1 the memory is not activated due to a hard error.
psb 2168 functional description semiconductor group 50 11.97 2.2.3.3 open file a specific file is opened for subsequent accesses with the specified access mode. opening a new file automatically closes the currently open file and clears the file pointer. opening file number 0 can be used to close all physical files. if the ts flag is set, the current content of rtc1 and rtc2 is written to the appropriate fields of the file descriptor in order to provide a timestamp. possible error conditions: ? selected file marked for deletion, but not yet deleted by garbage collection ? memory space invalid ? new file selected, but memory full ? exceeds number of prompts (in voice prompt space only) ? wrong access mode selected for existing file note: in case of flash memory existing ones in the entries rtc1/rtc2 of the file descriptor cannot be altered. therefore ts should be set only once during the lifetime of a file. 2.2.3.4 open next free file the next free file is opened for subsequent write accesses with the specified access mode. the search starts at the specified file number. if the ts flag is set, the current content of rtc1 and rtc2 is written to the appropriate fields of the file descriptor in order to provide a timestamp. if a free file has been found, the file is opened and the file number is returned in fctl:fno. otherwise an error is reported. table 32 open file parameters register # of bits name comment fcmd 5 cmd open command code fctl 1 ms memory space (r/w, voice prompt) fctl 1 md access mode (audio or binary) fctl 1 ts write timestamp fctl 8 fno file number table 33 open next free file parameters register # of bits name comment fcmd 5 cmd open next free file command code fctl 1 md access mode (audio or binary)
psb 2168 functional description semiconductor group 51 11.97 : possible error conditions: ? no unused file found ? memory full note: in case of flash memory existing ones cannot be altered. therefore ts should be set only once during the lifetime of a file. note: r/w-memory must be selected (fctl:ms). otherwise the result is unpredictable. 2.2.3.5 seek the file pointer of the currently opened file is set to the specified position. if the current file is the phrase file the psb 2168 starts the speech decoder immediately after the seek is finished. this is done by simply enabling the decoder. all other settings of the decoder remain unaffected. the bsy bit is first set during the file command. it is then reset for a short period until the speech decoder is enabled internally. it is then set again while the decoder is running and finally reset when the phrase is finished. possible error conditions: ? file pointer out of range ? phrase number out of range fctl 1 ts write timestamp fctl 8 fno starting point (>0) table 34 open next free file results register # of bits name comment fctl 8 fno file number table 35 seek parameters register # of bits name comment fcmd 5 cmd seek command code fptr 16 (11) file pointer (phrase selector) table 33 open next free file parameters register # of bits name comment
psb 2168 functional description semiconductor group 52 11.97 2.2.3.6 cut file all units starting with the unit addressed by the file pointer are removed from the file. if all units are deleted the file is marked for deletion (see user data word). however, the associated file descriptor and memory space are released only after a subsequent garbage collection. possible error conditions: ? file pointer out of range ? voice prompt memory selected 2.2.3.7 compress file an audio file that has been recorded in hq mode can be recoded using lp mode. this reduces the file size to approximately one third of the original size. the speech quality, however, is somewhat lower compared to a signal that has been recorded in lp mode in the first place. this command can be aborted at any time and resumed later without loss of information. prior to this command all files must be closed. table 37 shows the parameters for this command. . possible error conditions: ? invalid ? another file currently open ? binary file selected table 36 cut file parameters register # of bits name comment fcmd 5 cmd cut command code fptr 16 position of first unit to delete table 37 compress file parameters register # of bits name comment fcmd 5 cmd compress command code fctl 8 fno file number
psb 2168 functional description semiconductor group 53 11.97 2.2.3.8 memory status this command returns the number of available 1 kb blocks in r/w memory space. possible error conditions: ? file open 2.2.3.9 garbage collection this command initiates a garbage collection. until a garbage collection files that are marked for deletion still occupy the associated file descriptor and memory space. after the garbage collection these file descriptors and the associated memory space are available again. this command can optionally remap the directory. in this mode the remaining file descriptors are remapped to form a contiguous block starting with file number 1. the original order is preserved. this command requires that all files are closed, i.e. file 0 is opened. independently of the selected directory only the read/write directory is used. possible error conditions: ? file open 2.2.3.10 access file descriptor by this command the length, user data word and rtc1/rtc2 of a file descriptor can be read. the user data word can also be written. the file or the other entries of the file descriptor are not affected by this command. table 38 memory status parameters register # of bits name comment fcmd 5 cmd memory status code table 39 memory status results register # of bits name comment fdata 16 free number of free blocks table 40 garbage collection parameters register # of bits name comment fcmd 5 cmd garbage collection command code fcmd 1 rd remap directory
psb 2168 functional description semiconductor group 54 11.97 possible error conditions: ? none note: in case of flash memory bits already set to 1 cannot be altered. note: do not use this command with the phrase file (fno = 255). 2.2.3.11 read data this command can be used in binary access mode only. a single word is read at the position given by the file pointer. the file pointer can be set by the seek command. the file pointer is advanced by one word automatically. possible error conditions: ? file pointer out of range ? phrase file selected ? audio file selected table 41 access file descriptor parameters register # of bits name comment fcmd 5 cmd read access or write access command code fdata 16 user data (write access only) table 42 access file descriptor results register # of bits name comment fdata 16 content of selected entry (read access only) table 43 read data parameters register # of bits name comment fcmd 5 cmd read data command code table 44 read data results register # of bits name comment fdata 16 data word
psb 2168 functional description semiconductor group 55 11.97 2.2.3.12 write data this commands can be used in binary access mode only. a single word is written at the position of the file pointer. the file pointer is advanced by one word automatically. note, that for flash memory only zeroes can be overwritten by ones. this restriction occurs only if an already used value within an existing file is to be overwritten. possible error conditions: ? file pointer out of range (for existing files only) ? voice prompt memory selected ? memory full ? audio file selected table 45 write data parameters register # of bits name comment fcmd 5 cmd access mode command code (including mode) fdata 16 data word
psb 2168 functional description semiconductor group 56 11.97 2.2.4 low level memory management commands these commands allow the direct access of any location (single word) of the external memory. additionally it is possible to erase any block in case of a flash device. these commands should not be used during normal operation as they may interfere with the file system. no file must be open when one of these commands is given. the primary use of these commands is the in-system programming of a flash device with voice prompts. please refer to the appropriate application notes. 2.2.4.1 set address this command sets the 24 bit address pointer aptr. only the address bits a 8 -a 23 are set, the address bits a 0 -a 7 are automatically cleared. possible error conditions: ? file open 2.2.4.2 dma read this command reads a single word addressed by aptr. after the read access aptr is automatically incremented by one. table 47 shows the parameters for this command. possible error conditions: ? file open table 46 set address parameters register # of bits name comment fcmd 5 cmd set address command code fdata 16 adr address bits a 8 -a 23 of address pointer aptr table 47 dma read parameters register # of bits name comment fcmd 5 cmd dma read command code table 48 dma read results register # of bits name comment fdata 16 data data read from address aptr.
psb 2168 functional description semiconductor group 57 11.97 2.2.4.3 dma write this command writes a single word to the location addressed by aptr. after the write access aptr is automatically incremented by one. table 49 shows the parameters for this command. possible error conditions: ? file open note: if flash memory is connected the actual write is only performed when the last word within a page is written. until then the data is merely buffered in the flash device. please check the flash memory data sheets on page size. 2.2.4.4 block erase this command erases the physical block which includes the address given by aptr. the actual amount of memory erased by this command depends on the block size of the flash device. table 50 shows the parameters for this command. possible error conditions: ? file open ? aram/dram configured table 49 dma write parameters register # of bits name comment fcmd 5 cmd dma write command code fdata 16 data data to be written to aptr table 50 block erase parameters register # of bits name comment fcmd 5 cmd block erase command code
psb 2168 functional description semiconductor group 58 11.97 2.2.5 execution time the execution time of the file commands is determined by four factors: 1. internal state of the psb 2168 2. memory configuration 3. memory state 4. individual characteristics of the memory devices therefore there is no general formula for an exact calculation of the execution time for file commands. for aram/dram items three and four are not significant as the memory access timing is always fixed and no additional delay is incurred for erasing memory blocks. however, the amount of memory has significant impact on the initialization in case of aram and flash. for flash devices the particular location of a write access in combination with the internal organization of the memory device may result in a block erase and subsequent write accesses in order to copy data. in this case the individual erase and write timing of the attached devices also prolongs the execution time. the first factor, the internal state of the psb 2168, can influence all file commands regardless of the memory type attached. in general the psb 2168 may delay any file command by up to 30 ms. however, it is possible to skip this delay if the following conditions hold: 1. the command is not initialize/activate 2. neither the dtmf detector nor the speech coder nor the speech decoder are running if neither condition is violated then the psb 2168 can be forced to start command execution immediately. this is done by setting the eie bit in the fcmd register along with the command code. table 51 gives an indication of the execution time for two typical memory configurations. table 51 execution times command aram (4 mbit) km29lv040 initialize 40 s 1) <11 s activate < 10 ms 3 s open file /open next free file <10 ms <26 ms seek (within 4 mbit file) <0.5 s <0.5 s seek (within phrase file) <1 ms <1 ms cut file <5 ms <5 ms compress file #units * 30 ms #units * 30 ms access file descriptor <10 ms <10 ms
psb 2168 functional description semiconductor group 59 11.97 2.2.6 special notes on file commands 1. no mmu commands must be inserted between opening a file and writing data to it, either by writing data to a binary file or by enabling the coder for audio files. therefore reading or writing the file descriptor (e.g. user data word) is only allowed after all data writing has happened. 2. if an audio file has been opened for replay, a write file descriptor command must be followed by a seek command before the decoder can be enabled. 1) less than 20 ms for dram memory status <10 ms <10 ms read/write data <10 ms <10 ms garbage collection <20 ms 3 s table 51 execution times command aram (4 mbit) km29lv040
psb 2168 functional description semiconductor group 60 11.97 2.3 miscellaneous miscellaneous miscellaneous 2.3.1 real time clock the psb 2168 supplies a real time clock which maintains time with a resolution of a second and a range of up to a year. there are two registers which contain the current time and date (table 52 ). the real time clock maintains time during normal mode and power down mode only if the auxiliary oscillator osc is running and the rtc is enabled. note: writing out-of-range values to rtc1 and rtc2 results in undefined operation of the rtc 2.3.2 sps control register the two sps outputs (sps 0 , sps 1 ) can be used as either general purpose outputs, extended address outputs for voice prompt eprom or as status register outputs. table 53 shows the associated register. when used as status register outputs, the status register bit at position pos appears at sps 0 and the bit at position pos+1 appears at sps 1 . this mode of operation can be used for debugging purposes or direct polling of status register bits. 2.3.3 reset and power down mode the psb 2168 can be in either reset mode, power down mode or active mode. during reset the psb 2168 clears the hardware configuration registers and stops both internal table 52 real time clock registers register # of bits name comment rtc1 6 sec seconds elapsed rtc1 6 min minutes elapsed rtc2 5 hr hours elapsed rtc2 11 day days elapsed table 53 sps registers spsctl 1 sp0 output value of sps 0 spsctl 1 sp1 output value of sps 1 spsctl 3 mode mode of operation spsctl 4 pos position for status register window
psb 2168 functional description semiconductor group 61 11.97 and external activity. the address lines ma 0 -ma 15 provide a weak low until they are actually used as address lines (strong outputs) or auxiliary port pins (i/o). in reset mode the hardware configuration registers can be read and written. with the first access to a read/write register the psb 2168 enters active mode. in this mode the main oscillator is running and normal operation takes place. by setting the power down bit (pd) the psb 2168 can be brought to power down mode. in power down mode the main oscillator is stopped and, depending on hwconfig2:ppm), the memory control lines are released (weak high). depending on the configuration (aram/dram, app) the psb 2168 may still generate external activity (e.g. refresh cycles). the psb 2168 enters active mode again upon an access to a read/ write register. figure 29 shows a state chart of the modes of the psb 2168. figure 29 operation modes - state chart 2.3.4 interrupt the psb 2168 can generate an interrupt to inform the host of an update of the status register according to table 55 . an interrupt mask register (intm) can be used to disable or enable the interrupting capability of each bit of the status register except abt individually. table 54 power down bit register # of bits name comment cctl 1 pd power down mode reset active mode power down mode mode cctl.pd=1 r/w reg. access rst=1 rst=1 r/w reg. access
psb 2168 functional description semiconductor group 62 11.97 an interrupt is internally generated if any combination of these events occurs and the interrupt is not masked. the interrupt is cleared when the host reads the status register. if a new event occurs while the host reads the status register, the status register is updated after the current access is terminated and a new interrupt is generated immediately after the access has ended. note: if the internal interrupt occurs after the controller has already selected the device but not yet read the status word, then the status word is updated and the internal interrupt is cleared. therefore the controller should always evaluate the status word when read. 2.3.5 abort if the psb 2168 cannot continue the current operations in progress (e.g. due to a transient loss of power) it stops operation and initializes all read/write registers to their reset state. after that it sets the abt bit of the status register and generates an interrupt. the psb 2168 discards all commands with the exception of a write command to the revision register while abt is set. only after the write command to the revision register (with any value) the abt bit is reset and a reinitialization can take place. table 55 interrupt source summary status (old) status (new) set by reset by rdy=0 rdy=1 command completed command issued cia=0 cia=1 new caller id byte available cidctl0 read cd=0 cd=1 carrier detected carrier lost cd=1 cd=0 carrier lost carrier detected cpt=0 cpt=1 call progress tone detected cpt lost cpt=1 cpt=0 call progress tone lost cpt detected cng=0 cng=1 fax calling tone detected cng lost dtv=0 dtv=1 dtmf tone detected dtmf tone lost dtv=1 dtv=0 dtmf tone lost dtmf tone detected atv=0 atv=1 alert tone detected alert tone lost atv=1 atv=0 alert tone lost alert tone detected bsy=1 bsy=0 file command completed new command issued sd=0 sd=1 speech activity detected speech activity lost sd=1 sd=0 speech activity lost speech activity detected
psb 2168 functional description semiconductor group 63 11.97 2.3.6 revision register the psb 2168 contains a revision register. this register is read only and does not influence operation in any way. a write to the revision register clears the abt bit of the status register but does not alter the content of the revision register. 2.3.7 hardware configuration the psb 2168 can be adapted to various external hardware configurations by four special registers: hwconfig0 to hwconfig3. these registers are usually only written once during initialization and must not be changed while the psb 2168 is in active mode. it is mandatory that the programmed configuration reflects the external hardware for proper operation. special care must be taken to avoid i/o conflicts or excess current by enabling inputs without an external driving source. table 56 can be used as a checklist. table 56 hardware configuration checklist register name value check hwconfig0 pfrdy 1 frdy must not float hwconfig0 osc 1 osc1/2 must be connected to a crystal
psb 2168 functional description semiconductor group 64 11.97 2.3.8 auxiliary clock generation the psb 2168 can generate a data clock (at afeclk) and a frame synchronization signal (at afefs) for typical single channel codecs. the psb 2168 provides two pairs of frequencies according to table 57 . note: these frequencies are derived from the main oscillator. therefore the values listed in the table are only valid for the specified oscillator frequencies (see hwconfig1) 2.3.9 dependencies of modules there are some restrictions concerning the modules that can be enabled at the same time (table 58 ). a checked cell indicates that the two modules (defined by the row and the column of the cell) must not be enabled at the same time. there are three classes of file commands denoted by the letters b, o and i. table 59 shows the definition of these classes: 1) if speech decoder is running at slow speed table 57 auxiliary clock generation cm1 cm0 afeclk afefs comment 0 0 l l auxiliary clock generation disabled 0 1 undefined undefined reserved 1 0 512 khz 8 khz e.g. mc145480 1 1 1.536 mhz 8 khz e.g. tp3054 table 58 dependencies of modules speech encoder speech decoder line ec (24 ms) dtmf detector file command speech encoder x x b,o,i speech decoder x x 1) b,o,i line ec (24 ms) x x 1) b,o dtmf detector b,i file command b,o,i b,o,i b,o b,i
psb 2168 functional description semiconductor group 65 11.97 examples: ? the line echo canceller (in 24 ms mode) cannot be enabled when the speech decoder is running at slow speed. ? if the dtmf detector is running, none of the background file commands (b) must be executed. in addition, no file command must be executed with immediate execution enabled (i). however, files my be opened and other commands (like read or write) may be executed without immediate execution enabled. table 59 file command classes class description b background commands (activate, recompress, garbage collection, initialize) o open commands (open, open next free file) i any command executed with eie=1 (i.e. immediate execution)
psb 2168 functional description semiconductor group 66 11.97 2.4 interfaces interfaces interfaces this section describes the interfaces of the psb 2168. the psb 2168 supports both an iom ? -2 interface with single and double clock mode and a strobed serial data interface (ssdi). however, these two interfaces cannot be used simultaneously as they share some pins. both interfaces are for data transfer only and cannot be used for programming the psb 2168. table 60 lists the features of the two alternative interfaces. 2.4.1 iom ? -2 interface the data stream is partitioned into packets called frames. each frame is divided into a fixed number of timeslots. each timeslot is used to transfer 8 bits. figure 30 shows a commonly used terminal mode (three channels ch 0 , ch 1 and ch 2 with four timeslots each). the first timeslot (in figure 30 : b1) is denoted by number 0, the second one (b2) by 1 and so on. figure 30 iom ? -2 interface - frame structure the signal fsc is used to indicate the start of a frame. figure 31 shows as an example two valid fsc-signals (fsc, fsc * ) which both indicate the same clock cycle as the first clock cycle of a new frame (t 1 ). note: any timeslot (including m0, ci0, ...) can be used for data transfer. however, programming is not supported via the monitor channels. table 60 ssdi vs. iom ? -2 interface iom ? -2 ssdi signals 4 6 channels (bidirectional) 2 1 code linear pcm, a-law, m -law linear pcm synchronization within frame by timeslot (programmable) by signal (dxst, drst) b1 m0 b2 fsc dd/du ch 0 ch 1 ch 2 125 m s ci0 ic1 m1 ic2 ci1
psb 2168 functional description semiconductor group 67 11.97 figure 31 iom ? -2 interface - frame start the psb 2168 supports both single clock mode and double clock mode. in single clock mode, the bit rate is equal to the clock rate. bits are shifted out with the rising edge of dcl and sampled at the falling edge. in double clock mode, the clock runs at twice the bit rate. therefore for each bit there are two clock cycles. bits are shifted out with the rising edge of the first clock cycle and sampled with the falling edge of the second clock cycle. figure 32 shows the timing for single clock mode and figure 33 shows the timing for double clock mode. figure 32 iom ? -2 interface - single clock mode dcl fsc fsc * t 1 t 2 dcl t 1 t 2 dd/dr du/dx bit 0 bit 1 bit 2 bit 0 bit 1 bit 2
psb 2168 functional description semiconductor group 68 11.97 figure 33 iom ? -2 interface - double clock mode the psb 2168 supports up to two channels simultaneously for data transfer. both the coding (pcm or linear) and the data direction (dd/du assignment for transmit/receive) can be programmed individually for each channel. table 61 shows the registers used for configuration of the iom ? -2 interface. in a-law or m -law mode, only 8 bits are transferred and therefore only one timeslot is needed for a channel. in linear mode, 16 bits are needed for a single channel. in this mode, two consecutive timeslots are used for data transfer. bits 8 to 15 are transferred table 61 iom ? -2 interface registers register # of bits name comment sdconf 1 en interface enable sdconf 1 dcl selection of clock mode sdconf 6 nts number of timeslots within frame sdchn1 1 en channel 1 enable sdchn1 6 ts first timeslot (channel 1) sdchn1 1 dd data direction (channel 1) sdchn1 1 pcm 8 bit code or 16 bit linear pcm (channel 1) sdchn1 1 pcd 8 bit code (a-law or m -law, channel 1) sdchn2 1 en channel 2 enable sdchn2 6 ts first timeslot (channel 2) sdchn2 1 dd data direction (channel 2) sdchn2 1 pcm 8 bit code or 16 bit linear pcm (channel 2) sdchn2 1 pcd 8 bit code (a-law or m -law, channel 2) dcl t 1 dd/dr du/dx bit 0 bit 1 bit 2 bit 0 bit 1 t 2 t 3 t 4 t 5
psb 2168 functional description semiconductor group 69 11.97 within the first timeslot and bits 0 to 7 are transferred within the next timeslot. the first timeslot must have an even number. the most significant bit is always transmitted first.
psb 2168 functional description semiconductor group 70 11.97 2.4.2 ssdi interface the ssdi interface is intended for seamless connection to low-cost burst mode controllers (e.g. pmb 27251) and supports a single channel in each direction. the data stream is partitioned into frames. within each frame one 16 bit value can be sent and received by the psb 2168. the start of a frame is indicated by the rising edge of fsc. data is always sampled at the falling edge of dcl and shifted out with the rising edge of dcl. the ssdi transmitter and receiver are operating independently of each other except that both use the same fsc and dcl signal. 2.4.2.1 ssdi interface - transmitter the psb 2168 indicates outgoing data (on signal dx) by activating dxst for 16 clocks. the signal dxst is activated with the same rising edge of dcl that is used to send the first bit (bit 15) of the data. dxst is deactivated with the first rising edge of dcl after the last bit has been transferred. the psb 2168 drives the signal dx only when dxst is activated. figure 34 shows the timing for the transmitter. figure 34 ssdi interface - transmitter timing 2.4.2.2 ssdi interface - receiver valid data is indicated by an active drst pulse. each drst pulse must last for exactly 16 dcl clocks. as there may be more than one drst pulses within a single frame the psb 2168 can be programmed to listen to the n-th pulse with n ranging from 1 to 16. in order to detect the first pulse properly, drst must not be active at the rising edge of fsc. in figure 35 the psb 2168 is listening to the third drst pulse (n=3). fsc 125 m s dxst dcl du/dx bit 15 bit 14 bit 1 bit 0
psb 2168 functional description semiconductor group 71 11.97 figure 35 ssdi interface - active pulse selection figure 36 shows the timing for the ssdi receiver. figure 36 ssdi interface - receiver timing table 62 shows the registers used for configuration of the ssdi interface. table 62 ssdi interface register register # of bits name comment sdchn1 4 nas number of active drst strobe fsc drst active pulse (n=3) fsc 125 m s drst dcl dd/dr bit 15 bit 14 bit 1 bit 0
psb 2168 functional description semiconductor group 72 11.97 2.4.3 serial control interface the serial control interface (sci) uses four lines: sdr, sdx, sclk and cs . data is transferred by the lines sdr and sdx at the rate given by sclk. the falling edge of cs indicates the beginning of an access. data is sampled by the psb 2168 at the rising edge of sclk and shifted out at the falling edge of sclk. each access must be terminated by a rising edge of cs . the accesses to the psb 2168 can be divided into three classes: 1. configuration read/write 2. status/data read 3. register read/write if the psb 2168 is in power down mode, a read access to the status register does not deliver valid data with the exception of the rdy bit. after the status has been read the access can be either terminated or extended to read data from the psb 2168. a register read/write access can only be performed when the psb 2168 is ready. the rdy bit in the status register provides this information. any access to the psb 2168 starts with the transfer of 16 bits to the psb 2168 over line sdr. this first word specifies the access class, access type (read or write) and, if necessary, the register accessed. if a configuration register is written, the first word also includes the data and the access is terminated. likewise, if a register read is issued, the access is terminated after the first word. all other accesses continue by the transfer of the status register from the psb 2168 over line sdx. if a register (excluding configuration) is to be written, the next 16 bits containing the data are transferred over line sdr and the access is terminated. figures 37 to 40 show the timing diagrams for the different access classes and types to the psb 2168. figure 37 status register read access cs sclk sdr c 15 c 14 c 1 c 0 s 15 s 14 s 1 s 0 sdx c 15 ,..,c 0 : s 15 ,..,s 0 : command word for status register read : status register : int
psb 2168 functional description semiconductor group 73 11.97 figure 38 data read access figure 39 register write access cs sclk sdr c 15 c 14 c 1 c 0 s 15 s 14 s 1 s 0 sdx c 15 ,..,c 0 : s 15 ,..,s 0 : command word for data read : status register : d 15 d 14 d 1 d 0 d 15 ,..,d 0 : data to be read : cs sclk sdr c 15 c 14 c 1 c 0 s 15 s 14 s 1 s 0 sdx c 15 ,..,c 0 : s 15 ,..,s 0 : command word for register write : status register : d 15 d 14 d 1 d 0 d 15 ,..,d 0 : data to be written :
psb 2168 functional description semiconductor group 74 11.97 figure 40 configuration register read access configuration registers at even adresses use bit positions d 7 -d 0 while configuration registers at odd adresses use bit positions d 15 -d 8 . figure 41 configuration register write access or register read command the internal interrupt signal is cleared when the first bit of the status register is put on sdx. however, externally the signal int is deactivated as long as cs stays low. if the internal interrupt signal is not cleared or another event causing an interrupt occurs while the microcontroller is already reading the status belonging to the first event then int goes low again immediately after cs is removed. the timing is shown in figure 37 . table 63 shows the formats of the different command words. all other command words are reserved. cs sclk sdr c 15 c 14 c 1 c 0 sdx c 15 ,..,c 0 : s 15 ,..,s 0 : command word for configuration register read : status register : d 15 ,..,d 0 : data to be read : s 15 s 14 s 1 s 0 d 15 d 14 d 1 d 0 cs sclk sdr c 15 c 14 c 1 c 0 c 15 ,..,c 0 : command word for configuration register write : or register read :
psb 2168 functional description semiconductor group 75 11.97 in case of a configuration register write, w determines which configuration register is to be written (table 64 ): in case of a configuration register read, r determines which pair of configuration registers is to be read (table 65 ): note: reading any register except the status register or a hardware configuration register requires at least two accesses. the first access is a register read command (figure 41 ). with this access the register address is transferred to the. after that access data read accesses (figure 38 ) must be executed. the first data read access with status:rdy=1 delivers the value of the register. table 63 command words for register access 1514131211109876543210 read status register or data read access 0011000000000000 read register 0101 reg write register 0100 reg read configuration reg. 011100r000000000 write configuration reg. 011000 w data table 64 address field w for configuration register write 9 8 register 0 0 hwconfig 0 0 1 hwconfig 1 1 0 hwconfig 2 1 1 hwconfig 3 table 65 address field r for configuration register read 9 register pair 0 hwconfig 0 / hwconfig 1 1 hwconfig 2 / hwconfig 3
psb 2168 functional description semiconductor group 76 11.97 2.4.4 memory interface the psb 2168 supports either flash memory or aram/dram as external memory for storing messages. if aram/dram is used, an eprom can be added optionally to support read-only messages (e.g. voice prompts). table 66 summarizes the different configurations supported. if aram/dram is used, the total amount of memory must be a power of two and all devices must be of the same type. the pin frdy must be tied high. for flash devices, the psb 2168 supports in-circuit programming of voice prompts by releasing the control lines during reset and (optionally) power down. instead of actively driving the lines fcs , foe , fwe , fcle and ale these lines are pulled high by a weak pullup during reset and (optionally) power down. table 66 supported memory configurations mbit type bank 0 (d 0 -d 3 ) bank 1 (d 4 -d 7 ) comment 1 aram/dram 256kx4 - 2 aram/dram 256kx4 256kx4 4 aram/dram 1mx4 - 4 aram/dram 512kx8 8 aram/dram 1mx4 1mx4 16 aram/dram 4mx4 - 2k or 4k refresh 16 aram/dram 2mx8 2k refresh 32 aram/dram 4mx4 4mx4 2k or 4k refresh 32 aram/dram 2x2mx8 2k refresh 64 aram/dram 16mx4 - 4k or 8k refresh 64 aram/dram 8mx8 4k or 8k refresh 128 aram/dram 16mx4 16mx4 4k or 8k refresh 4-128 flash 512kx8 devices km29n040 16-128 flash 2mx8 devices km29n16000
psb 2168 functional description semiconductor group 77 11.97 2.4.4.1 aram/dram interface the psb 2168 supports up to two banks of memory which may be 4 bit or 8 bit wide (figure 42 ). if both banks are used they must be populated identically. figure 42 aram/dram interface - connection diagram ma 0 -ma 1 5 md 0 -md 3 ras cas 0 w a 0 -a 12 d 0 -d 3 ras cas w oe ma 0 -ma 1 5 md 0 -md 3 ras cas 0 w a 0 -a 12 d 0 -d 7 ras cas w oe single 4 bit bank single 8 bit bank ma 0 -ma 1 5 md 0 -md 7 ras cas 0 w a 0 -a 12 d 0 -d 3 ras cas w oe a 0 -a 12 d 0 -d 3 ras cas w oe md 4 -md 7 cas 1 two 4 bit banks ma 0 -ma 1 5 md 0 -md 7 ras cas 0 w a 0 -a 12 d 0 -d 7 ras cas w oe a 0 -a 12 d 0 -d 7 ras cas w oe cas 1 two 8 bit banks psb 2168 psb 2168 psb 2168 psb 2168
psb 2168 functional description semiconductor group 78 11.97 the psb 2168 also supports different internal organizations of aram/dram chips. table 67 shows the necessary connections on the address bus. the timing of the aram/dram interface is shown in figures 43 to 45 . the timing is derived form the internal memory clock mclk* which runs at a quarter of the system clock. figure 43 aram/dram interface - read cycle timing 1) see chip control register cctl table 67 address line usage (aram/dram mode) aram/dram cs9 1) ma 0 -ma 8 ma 9 ma 10 ma 11 ma 12 ma 13 256k x4 1 a 0 -a 8 512k x8 1 a 0 -a 8 a 9 1m x4 0 a 0 -a 8 a 9 4m x4 (2k refresh) 0 a 0 -a 8 a 9 a 10 4m x4 (4k refresh) 0 a 0 -a 8 a 9 a 10 a 11 2m x8 0 a 0 -a 8 a 9 a 10 16m x4 (4k refresh) 0 a 0 -a 8 a 9 a 10 a 11 16m x4 (8k refresh) 0 a 0 -a 8 a 9 a 10 a 11 a 12 8m x8 (4k refresh) 0 a 0 -a 8 a 9 a 10 a 11 8m x8 (8k refresh) 0 a 0 -a 8 a 9 a 10 a 11 a 12 mclk* ma 0 -ma 13 md 0 -md 7 cas 0 ,cas 1 ras row addr. col. addr.
psb 2168 functional description semiconductor group 79 11.97 figure 44 aram/dram interface - write cycle timing figure 45 aram/dram interface - refresh cycle timing the psb 2168 ensures that ras remains inactive for at least one mclk*-cycle between successive accesses. the frequency at which refresh cycles are performed is shown in table 68 . 1) as programmed by hwconfig2:rsel table 68 refresh frequency selection refresh frequency comment 64 khz memory access (e.g. recording) in progress 8, 16, 32 or 64 khz 1) no memory access in progress or power-down mclk* ma 0 -ma 13 md 0 -md 7 cas 0 ,cas 1 ras row addr. col. addr. w data out mclk* cas 0 ,cas 1 ras
psb 2168 functional description semiconductor group 80 11.97 2.4.4.2 eprom interface the psb 2168 supports an eprom in parallel with aram/dram. this interface is always 8 bits wide and supports a maximum of 256 kb. figure 46 shows a connection diagram and figure 47 the timing. this interface supports read cycles only. figure 46 eprom interface - connection diagram figure 47 eprom interface - read cycle timing note: in order to access more than 64 kb the pins sps 0 and sps 1 can be programmed to provide the address lines a 16 and a 17 . in this mode a 16 and a 17 remain stable during the whole read cycle. see the register spsctl for programming information. ma 0 -ma 1 5 md 0 -md 7 vprd a 0 -a 15 d 0 -d 7 ce oe psb 2168 a 16 a 17 sps 1 sps 0 vprd md 0 -md 7 mclk* ma 0 -ma 15
psb 2168 functional description semiconductor group 81 11.97 2.4.4.3 flash memory interface the psb 2168 has special support for the km29n040 and km29n16000 or equivalent devices. no external components are required for up to four km29n040. figure 48 shows the connection diagram for a single device. figure 48 flash memory interface - connection diagram table 69 shows the signals output during a device access on the ma-lines. the address bits can used by an external decoder. up to four km29n040 are supported directly by the decoded select signals fcs 0 -fcs 3 . table 69 address line usage (samsung mode) ma 11 ma 10 ma 9 ma 8 ma 7 ma 6 ma 5 ma 4 ma 3 ma 2 ma 1 ma 0 fcs 3 fcs 2 fcs 1 fcs 0 a 23 a 22 a 21 a 20 a 19 a 18 a 17 a 16 d 0 -d 7 ce re we cle md 0 -md 7 fcs foe fwr fcle ale ale +5v r/b frdy wp psb 2168
psb 2168 functional description semiconductor group 82 11.97 figure 49 shows an application with three km29n040 devices. figure 49 flash memory interface - multiple devices an access to the flash memory can consist of several partial access cycles where only the timing of the partial access cycles is defined but not the time between two adjacent partial access cycles. the psb 2168 performs three types of partial access cycles: 1. command write 2. address write 3. data read/write table 70 shows the supported accesses and the corresponding partial access cycles. table 70 flash memory command summary access command write address write 1 address write 2 address write 3 # of data read/write command write reset ff - - - - - status read 70 - - - 1 - block erase 60 a 8 -a 15 a 16 -a 23 --d0 read 00 a 0 -a 7 a 8 -a 15 a 16 -a 23 1-32 - write 80 a 0 -a7 a 8 -a 15 a 16 -a 23 1-32 10 d 0 -d 7 ce re we cle md 0 -md 7 foe fwr frdy ale ale +5v r/b fcle wp d 0 -d 7 ce re we cle ale r/b wp ma 8 ma 9 ma 10 d 0 -d 7 ce re we cle ale r/b wp psb 2168
psb 2168 functional description semiconductor group 83 11.97 the timing for the partial access cycles is shown in figures 50 to 51 . note that both fcs and ma 0 -ma 15 remain stable between the first and the last partial access of a device access. figure 50 flash memory interface - command write figure 51 flash memory interface - address write as there is no access that starts or stops with an address write cycle (figure 51 ) fcs is already low at the start of this cycle and also remains low. mclk* ma 0 -ma 11 md 0 -md 7 fwr fcs fcle data out mclk* md 0 -md 7 fwr ale data out address latch cycle t 0 t 1 t 2 t 3
psb 2168 functional description semiconductor group 84 11.97 figure 52 flash memory interface - data write as there is no access that starts or stops with a data write cycle (figure 52 ) fcs is already low at the start of this cycle and also remains low. figure 53 flash memory interface - data read if the device access ends with a read cycle, the fcs -signals go inactive after t 3 of the last read cycle. the data is latched at the rising edge of foe . mclk* md 0 -md 7 fwr data out write cycle t 0 t 1 t 2 t 3 mclk* md 0 -md 7 foe data in read cycle t 0 t 1 t 2 t 3
psb 2168 functional description semiconductor group 85 11.97 2.4.5 auxiliary parallel port the psb 2168 provides an auxiliary parallel port if the memory interface is in samsung mode and only one device is used. in this case the lines ma 0 to ma 15 are not needed for the memory interface and can therefore be used for an auxiliary parallel port. this port has two modes: static mode and multiplex mode. 2.4.5.1 static mode in static mode all pins of the auxiliary parallel port interface have identical functionality. any pin can be configured as an output or an input. pins configured as outputs provide a static signal as programmed by the controller. pins configured as inputs are monitoring the signal continuously without latching. the controller always reads the current value. table 71 shows the registers used for static mode. 2.4.5.2 multiplex mode in multiplex mode, the psb 2168 uses ma 12 -ma 15 to distinguish four timeslots. each timeslot has a duration of approximately 2 ms. the timeslots are separated by a gap of approximately 125 m s in which none of the signals at ma 12 -ma 15 are active. the psb 2168 multiplexes three more output registers to ma 0 -ma 11 in timeslots 0, 1 and 2. in timeslot 3 the direction of the pins can be programmed. for input pins, the signal is latched at the falling edge of ma 15 . table 72 shows the registers used for multiplex mode. this mode is useful for scanning keys or controlling seven segment led displays. table 71 static mode registers register # of bits comment dout3 16 output signals (for pins configured as outputs) din 16 input signals (for pins configured as inputs) ddir 16 pin direction table 72 multiplex mode registers register # of bits comment dout0 12 output signals on ma 0 -ma 11 while ma 15 =1 dout1 12 output signals on ma 0 -ma 11 while ma 14 =1 dout2 12 output signals on ma 0 -ma 11 while ma 13 =1 dout3 12 output signals (for pins configured as outputs) while ma 12 =1 din 12 input signals (for pins configured as inputs) at falling edge of ma 12 ddir 12 pin direction during ma 12 =1
psb 2168 functional description semiconductor group 86 11.97 figure 54 shows the timing diagram for multiplex mode. figure 54 auxiliary parallel port - multiplex mode note: in either mode the voltage at any pin (ma 0 to ma 15 ) must not exceed v dd. 2 ms ma 15 ma 14 ma 13 ma 12 ma 0 -ma 11 dout0 dout2 dout1 dout0 din/dout3
psb 2168 detailed register description semiconductor group 87 11.97 3 detailed register description the psb 2168 has a single status register (read only) and an array of data registers (read/write). the purpose of the status register is to inform the external microcontroller of important status changes of the psb 2168 and to provide a handshake mechanism for data register reading or writing. if the psb 2168 generates an interrupt, the status register contains the reason of the interrupt. 3.1 status register rdy ready 0: the last command (if any) is still in progress. 1: the last command has been executed. abt abort 0: no exception during operation 1: some exception other than reset caused the psb 2168 to abort any operation currently in progress. the external microcontroller should reinitialize the psb 2168 to ensure proper operation. the abt bit is cleared by writing any value to register rev. no other command is accepted by the psb 2168 while abt is set. cia caller id available 0: no new data for caller id 1: new caller id byte available cd carrier detect 0: no carrier detected 1: carrier detected 1) undefined 15 0 rdy abt 0 0 cia cd cpt cng sd err bsy dtv atv - 1) - 1) - 1)
psb 2168 detailed register description semiconductor group 88 11.97 cpt call progress tone 0: currently no call progress tone detected or pause detected (raw mode) 1: currently a call progress is detected cng fax calling tone 0: currently no fax calling tone detected 1: currently a fax calling tone is detected sd speech detected 0: no speech detected 1: speech signal at input of coder err error (file command) 0: no error 1: last file command resulted in an error bsy busy (file command) 0: file system idle 1: file system still busy (also set during encoding/decoding) dtv dtmf tone valid 0: no new dtmf code available 1: new dtmf code available in ddctl atv alert tone valid 0: no new alert tone code available 1: new alert tone code available in adctl0
psb 2168 detailed register description semiconductor group 89 11.97 3.2 hardware configuration registers hwconfig 0 - hardware configuration register 0 ppsdx push/pull for sdx 0: the sdx pin has open-drain characteristic 1: the sdx pin has push/pull characteristic ppint push/pull for int 0: the int pin has open-drain characteristic 1: the int pin has push/pull characteristic pfrdy pullup for frdy 0: the internal pullup resistor of pin frdy is enabled 1: the internal pullup resistor of frdy is disabled ppsdi push/pull for sdi interface 0: the du and dd pins have open-drain characteristic 1: the du and dd pins have push/pull characteristic osc enable auxiliary oscillator 0: the auxiliary oscillator (osc 1 , osc 2 ) is disabled 1: the auxiliary oscillator (osc 1 , osc 2 ) is enabled rtc enable real time clock 0: the real time clock is disabled 1: the real time clock (rtc) is enabled. pd power down (read only) 0: the psb 2168 is in active mode 1: the psb 2168 is in power down mode 7 0 pd 0 rtc osc ppsdi pfrdy ppint ppsdx
psb 2168 detailed register description semiconductor group 90 11.97 hwconfig 1 - hardware configuration register 1 app auxiliary parallel port xtal xtal frequency ssdi ssdi interface selection 0: iom ? -2 interface 1: ssdi interface 1) the factor p is needed to calculate the clock frequency at afeclk. 7 0 app 0 0 1 xtal ssdi 7 6 description 0 0 normal (aram/dram, intel type flash, voice prompt eprom) 0 1 app static mode 1 0 app multiplex mode 1 1 reserved 2 1 factor p 1) description 0 0 reserved reserved 0 1 4.5 31.104 mhz 1 0 4 27.648 mhz 1 1 reserved reserved
psb 2168 detailed register description semiconductor group 91 11.97 hwconfig 2 - hardware configuration register 2 ppm push/pull for memory interface (reset, power down) 0: the signals for the memory interface have push/pull characteristic 1: the signals for the memory interface have pullup/pulldown characteristic esdx edge select for dx 0: dx is transmitted with the rising edge of dcl 1: dx is transmitted with the falling edge of dcl esdr edge select for dr 0: dr is latched with the falling edge of dcl 1: dr is latched with the rising edge of dcl rsel refresh select 7 0 ppm esdx esdr 0 0 rsel 1 0 description 0 0 64 khz refresh frequency 0 1 32 khz refresh frequency 1 0 16 khz refresh frequency 1 1 8 khz refresh frequency
psb 2168 detailed register description semiconductor group 92 11.97 hwconfig 3 - hardware configuration register 3 cm1 clock master 1 0: clock generation at afefs and afeclk disabled 1: clock generation at afefs and afeclk enabled cm0 clock master 0 0: 512 khz (afeclk) 1: 1.536 mhz (afeclk) 7 0 000000cm1cm0
psb 2168 detailed register description semiconductor group 93 11.97 3.3 read/write registers the following sections contains all read/write registers of the psb 2168. the register addresses are given as hexadecimal values. registers marked with an r are affected by reset or a wake up after power down. all other registers retain their previous value. no access must be made to addresses other than those associated with a read/write register. furthermore parameters of a functional unit must not be altered while the unit is enabled. parameters that can be changed on the fly (taking effect while the functional unit is enabled) are marked individually. 3.3.1 register table address. name long name page 00h rev revision................................................................................ 96 01h r cctl chip control ......................................................................... 97 02h r intm interrupt mask register ........................................................ 98 0ah r sdconf serial data interface configuration ...................................... 99 0bh r sdchn1 serial data interface channel 1 ......................................... 100 0chr ifs3 interface select 3 ............................................................... 102 0dhr sdchn2 serial data interface channel 2 ......................................... 103 0eh r ifs4 interface select 4 ............................................................... 104 0fh r ifg5 interface gain 5.................................................................. 105 10h r ua universal attenuator........................................................... 106 11h r dgctl dtmf generator control.................................................... 107 12h dgf1 dtmf generator frequency 1 ........................................... 108 13h dgf2 dtmf generator frequency 2 ........................................... 109 14h dgl dtmf generator level....................................................... 110 15h dgatt dtmf generator attenuation ............................................. 111 16h r cngctl calling tone control........................................................... 112 17h cngbt cng burst time ................................................................. 113 18h cnglev cng minimal signal level ................................................. 114 19h cngres cng signal resolution ...................................................... 115 1ah r atdctl0 alert tone detection 0........................................................ 116 1bh atdctl1 alert tone detection 1........................................................ 117 1chr cidctl0 caller id control 0.............................................................. 118 1dh cidctl1 caller id control 1.............................................................. 119 20h r cptctl call progress tone control ................................................ 120 21h cpttr call progress tone thresholds.......................................... 121 22h cptmn cpt minimum times.......................................................... 122 23h cptmx cpt maximum times......................................................... 123 24h cptdt cpt delta times ................................................................ 124 25h r lecctl line echo cancellation control .......................................... 125
psb 2168 detailed register description semiconductor group 94 11.97 26h leclev minimal signal level for line echo cancellation ............... 126 27h lecatt externally provided attenuation ......................................... 127 28h lecmgn margin for double talk detection....................................... 128 29h r ddctl dtmf detector control ...................................................... 129 2ah ddtw dtmf detector signal twist .............................................. 130 2bh ddlev dtmf detector minimum signal level............................... 131 2eh r fcfctl equalizer control................................................................ 132 2fh fcfcof equalizer coefficient data.................................................. 134 30h r scctl speech coder control........................................................ 135 31h scct2 speech coder control 2..................................................... 136 32h scct3 speech coder control 3..................................................... 137 34h r sdctl speech decoder control .................................................... 138 38h r agcctl agc control ....................................................................... 139 39h r agcatt automatic gain control attenuation ................................... 140 3ah agc1 automatic gain control 1 ................................................... 141 3bh agc2 automatic gain control 2 ................................................... 142 3ch agc3 automatic gain control 3 ................................................... 143 3dh agc4 automatic gain control 4 ................................................... 144 3eh agc5 automatic gain control 5 ................................................... 145 40h r fctl file control ......................................................................... 146 41h r fcmd file command .................................................................... 147 42h r fdata file data ............................................................................. 149 43h r fptr file pointer ......................................................................... 150 47h r spsctl sps control........................................................................ 151 48h r rtc1 real time clock 1 .............................................................. 152 49h r rtc2 real time clock 2 .............................................................. 153 4ah r dout0 data out (timeslot 0) ......................................................... 154 4bh r dout1 data out (timeslot 1) ......................................................... 155 4chr dout2 data out (timeslot 2) ......................................................... 156 4dhr dout3 data out (timeslot 3 or static mode)................................. 157 4eh din data in (timeslot 3 or static mode).................................... 158 4fh r ddir data direction (timeslot 3 or static mode) ........................ 159 note: registers cctl, fctl, fcmd, fdata, fptr, rtc1, rtc2, dout0, dout1, dout2, dout3 and ddir are only affected by reset, not by wakeup. for register spsctl see the register description for the exact behaviour. 3.3.2 register naming conventions several registers contain one or more fields for input signal selection. all fields labelled i 1 (i 2 , i 3 ) are five bits wide and use the same coding as shown in table 73.
psb 2168 detailed register description semiconductor group 95 11.97 table 73 signal encoding 4 3 2 1 0 signal description 00000s 0 silence 00001s 1 reserved 00010s 2 reserved 00011s 3 reserved 00100s 4 reserved 00101s 5 serial interface input, channel 1 00110s 6 serial interface output, channel 1 00111s 7 serial interface input, channel 2 01000s 8 serial interface output, channel 2 01001s 9 dtmf generator output 01010s 10 dtmf generator auxiliary output 01011s 11 reserved 01100s 12 reserved 01101s 13 speech decoder output 01110s 14 universal attenuator output 01111s 15 line echo canceller output 10000s 16 agc unit output (after agc) 10001s 17 agc unit output (before agc) 10010s 18 equalizer output 10011 reserved 1 0 1 - - reserved 1 1 - - - reserved
psb 2168 detailed register description semiconductor group 96 11.97 00 h rev revision the revision register can only be read. for the psb 2168, v2.1, all bits except bit 13 are zero. note: a write access to the revision register does not alter its content. it does, however, reset the abt bit of the status register. 15 0 0010000000000000
psb 2168 detailed register description semiconductor group 97 11.97 01 h r cctl chip control mv voice prompt directory 0: not available 1: available (within eprom or flash) pd power down 0: psb 2168 is in active mode 1: enter power-down mode mq memory quality 0: aram 1: dram mt memory type cs9 cas selection 0: other memory 1: 256kx4 or 512kx8 memory sas split address space 0: other aram/dram 1: two 2mx8 devices 15 0 0 0 0 0 mv 0 0 pd 0 0 0 mq mt cs9 sas reset value 0000000000000000 3 2 description 0 0 aram/dram 1 1 samsung flash memory
psb 2168 detailed register description semiconductor group 98 11.97 02 h r intm interrupt mask register if a bit of this register is reset (set to 0), the corresponding bit of the status register does not generate an interrupt. if a bit is set (set to 1), an external interrupt can be generated by the corresponding bit of the status register. l 15 0 rdy 1 0 0 cia cd cpt cng sd 0 bsy dtv atv 0 0 0 reset value 0100000000000000
psb 2168 detailed register description semiconductor group 99 11.97 0a h r sdconf serial data interface configuration nts number of timeslots dcl double clock mode 0: single clock mode 1: double clock mode en enable interface 0: interface is disabled (both channels) 1: interface is enabled (depending on separate channel enable bits) 15 0 00 nts 00000dcl0en reset value 00 0 00000000 13 12 11 10 9 8 description 0000001 0000012 ... ... ... ... ... ... ... 11111164
psb 2168 detailed register description semiconductor group 100 11.97 0b h r sdchn1 serial data interface channel 1 nas number of active drst strobe (ssdi interface mode) pcd pcm code 0: a-law 1: m -law en enable interface 0: interface is disabled 1: interface is enabled if sdconf:en=1 pcm pcm mode 0: 16 bit linear coding (two timeslots) 1: 8 bit pcm coding (one timeslot) dd data direction 0: dd: data downstream, du: data upstream 1: dd: data upstream, du: data downstream ts timeslot for channel 1 15 0 nas 0 0 pcd en pcm dd ts reset value 0 000000 0 15 14 13 12 description 00001 ... ... ... ... ... 111116 543210description 0000000 ... ... ... ... ... ... ... 11111163
psb 2168 detailed register description semiconductor group 101 11.97 note: if pcm=0 then ts denotes the first timeslot of the two consecutive timeslots used. only even timeslots are allowed in this case.
psb 2168 detailed register description semiconductor group 102 11.97 0c h r ifs3 interface select 3 hp high-pass for s 5 0: disabled 1: enabled i1 input signal 1 for s 6 i2 input signal 2 for s 6 i3 input signal 3 for s 6 note: as all sources are always active, unused sources must be set to 0 (s 0 ). 15 0 hp i1 i2 i3 reset value 00 0 0
psb 2168 detailed register description semiconductor group 103 11.97 0d h r sdchn2 serial data interface channel 2 pcd pcm code 0: a-law 1: m -law en enable interface 0: interface is disabled 1: interface is enabled if sdconf:en=1 pcm pcm mode 0: 16 bit linear coding (two timeslots) 1: 8 bit pcm coding (one timeslot) dd data direction 0: dd: data downstream, du: data upstream 1: dd: data upstream, dd: data downstream ts timeslot for channel 2 note: if pcm=0 then ts denotes the first timeslot of the two consecutive timeslots used. only even timeslots are allowed in this case. 15 0 000000pcdenpcmdd ts reset value 0000000000 0 5 4 3 2 1 0 description 0000000 0000011 ... ... ... ... ... ... ... 11111163
psb 2168 detailed register description semiconductor group 104 11.97 0e h r ifs4 interface select 4 hp high-pass for s 7 0: disabled 1: enabled i1 input signal 1 for s 8 i2 input signal 2 for s 8 i3 input signal 3 for s 8 as all sources are always active, unused sources must be set to 0 (s 0 ). 15 0 hp i1 i2 i3 reset value 00 0 0
psb 2168 detailed register description semiconductor group 105 11.97 0f h r ifg5 interface gain 5 att1 attenuation for i3 (channel 1) in order to obtain an attenuation a the parameter att1 can be calculated by the following formula: att2 attenuation for i3 (channel 2) in order to obtain an attenuation a the parameter att2 can be calculated by the following formula: 1) can be changed on the fly. 15 0 att1 1) att2 1) reset value 255 (0 db) 255 (0 db) att1 256 a20db 10 = att2 256 a20db 10 =
psb 2168 detailed register description semiconductor group 106 11.97 10 h r ua universal attenuator att attenuation for ua for a given attenuation a [db] the parameter att can be calculated by the following formula: i1 input selection for ua 1) can be changed on the fly. 15 0 att 1) 000 i1 reset value 0 (-100 db) 0 0 0 0 att 256 a20db 10 =
psb 2168 detailed register description semiconductor group 107 11.97 11 h r dgctl dtmf generator control en generator enable 0: disabled 1: enabled md mode 0: raw 1: cooked dtc dial tone code (cooked mode) 15 0 enmd0000000000 dtc reset value 000000000000 0 3 2 1 0 digit frequency 0 0 0 0 1 697/1209 0 0 0 1 2 697/1336 0 0 1 0 3 697/1477 0 0 1 1 a 697/1633 0 1 0 0 4 770/1209 0 1 0 1 5 770/1336 0 1 1 0 6 770/1477 0 1 1 1 b 770/1633 1 0 0 0 7 852/1209 1 0 0 1 8 852/1336 1 0 1 0 9 852/1477 1 0 1 1 c 852/1633 1 1 0 0 * 941/1209 1 1 0 1 0 941/1336 1 1 1 0 # 941/1477 1 1 1 1 d 941/1633
psb 2168 detailed register description semiconductor group 108 11.97 12 h dgf1 dtmf generator frequency 1 frq frequency of generator 1 the parameter frq for a given frequency f [hz] can be calculated by the following formula: 15 0 0 frq frq 32768 f 4000hz ------------------- =
psb 2168 detailed register description semiconductor group 109 11.97 13 h dgf2 dtmf generator frequency 2 frq frequency of generator 2 he parameter frq for a given frequency f [hz] can be calculated by the following formula: 15 0 0frq frq 32768 f 4000hz ------------------- =
psb 2168 detailed register description semiconductor group 110 11.97 14 h dgl dtmf generator level lev2 signal level of generator 2 in order to obtain a signal level l (relative to the pcm maximum value) for generator 2 the value of lev2 can be calculated according to the following formula: lev1 signal level of generator 1 in order to obtain a signal level l (relative to the pcm maximum value) for generator 1 the value of lev1 can be calculated according to the following formula: 15 0 0 lev2 0 lev1 lev2 128 l20db 10 = lev1 128 l20db 10 =
psb 2168 detailed register description semiconductor group 111 11.97 15 h dgatt dtmf generator attenuation att2 attenuation of signal s 10 in order to obtain attenuation a the parameter att2 can be calculated by the formula: att1 attenuation of signal s 9 in order to obtain attenuation a the parameter att1 can be calculated by the formula: 15 0 att2 att1 att2 128 1024 a20db 10 +a181db , > ; 128 a20db 10 a 18 1 db , < ; ? = att1 128 1024 a20db 10 +a181db , > ; 128 a20db 10 a 18 1 db , < ; ? =
psb 2168 detailed register description semiconductor group 112 11.97 16 h r cngctl calling tone control en enable 0: cng unit disabled 1: cng unit enabled i1 input selection for calling tone detector 15 0 en0000000000 i1 reset value 00000000000 0
psb 2168 detailed register description semiconductor group 113 11.97 17 h cngbt cng burst time time minimum time for calling tone in order to obtain the parameter time for a minimum time t the following formula can be used: 15 0 0 time time t 0.125 ms =
psb 2168 detailed register description semiconductor group 114 11.97 18 h cnglev cng minimal signal level min minimum signal level for calling tone in order to obtain the parameter min for a minimum signal level l the following formula can be used: 15 0 00 min min 16384 l20db 10 =
psb 2168 detailed register description semiconductor group 115 11.97 19 h cngres cng signal resolution res signal resolution the parameter res depends on the noise level l as follows: 15 0 1111 res res 4096 C l20db 10 =
psb 2168 detailed register description semiconductor group 116 11.97 1a h r atdctl0 alert tone detection 0 en enable alert tone detection 0: the alert tone detection is disabled 1: the alert tone detection is enabled i1 input signal selection atc alert tone code 1) undefined 15 0 en00 i1 000000 atc reset value 000 0 000000 - 1) 1 0 description 0 0 no tone 0 1 2130 1 0 2750 1 1 2130/2750
psb 2168 detailed register description semiconductor group 117 11.97 1b h atdctl1 alert tone detection 1 md alert tone detection mode 0: only dual tones will be detected 1: either dual or single tones will be detected dev maximum frequency deviation for alert tone 0: 0.5% 1: 1.1% min minimum level of alert tone signal for a minimum signal level min the parameter min is given by the following formula: 15 0 md00dev0000 min min 2560 min 20 db 10 =
psb 2168 detailed register description semiconductor group 118 11.97 1c h r cidctl0 caller id control 0 en cid enable 0: disabled 1: enabled i1 input signal selection data last received data byte 15 0 en 0 0 i1 data reset value 000 0 0
psb 2168 detailed register description semiconductor group 119 11.97 1d h cidctl1 caller id control 1 nmb minimum number of mark bits nmss minimum number of mark/space sequences min minimum signal level for cid decoder for a minimum signal level min the parameter min is given by the following formula: 15 0 nmb nmss min 15 14 13 12 11 10 description 0000000 000 110 ... ... ... ... ... ... ... 111111630 9 8 7 6 5 description 000001 0000111 ... ... ... ... ... 11111311 min 640 min 20 db 10 =
psb 2168 detailed register description semiconductor group 120 11.97 20 h r cptctl call progress tone control en cpt detector enable 0: disabled 1: enabled md cpt mode 0: raw 1: cooked i1 input signal selection 15 0 enmd000000000 i1 reset value 00000000000 0
psb 2168 detailed register description semiconductor group 121 11.97 21 h cpttr call progress tone thresholds num number of cycles sn minimal signal-to-noise ratio min minimum signal level for cpt detector 15 0 num 0 sn min 15 14 13 cooked mode raw mode 0 0 0 reserved 0 0 0 1 2 reserved ... ... ... ... reserved 1 1 1 8 reserved 11 10 9 8 description 11119db 100012db 010015db 001018db 000022db value description 89 h -40 db 85 h -42 db 80 h -44 db 9a h -46 db 95 h -48 db 90 h -50 db
psb 2168 detailed register description semiconductor group 122 11.97 22 h cptmn cpt minimum times minb minimum time for cpt burst the parameter minb for a minimal burst time tbmin can be calculated by the following formula: ming minimum time for cpt gap the parameter ming for a minimal burst time tgmin can be calculated by the following formula: 15 0 minb ming minb tbmin 32 ms C 4 ------------------------------------- - = ming tgmin 32 ms C 4 -------------------------------------- =
psb 2168 detailed register description semiconductor group 123 11.97 23 h cptmx cpt maximum times maxb maximum time for cpt burst the parameter maxb for a maximal burst time of tbmax can be calculated by the following formula: maxg maximum time for cpt gap the parameter maxg for a maximal burst time of tgmax can be calculated by the following formula: 15 0 maxb maxg maxb tbmax tbmin C 8 ----------------------------------------- = maxg tgmax tgmin C 8 ----------------------------------------- - =
psb 2168 detailed register description semiconductor group 124 11.97 24 h cptdt cpt delta times difb maximum time difference between consecutive bursts the parameter difb for a maximal difference of t ms of two burst durations can be calculated by the following formula: difg maximum time difference between consecutive gaps the parameter difg for a maximal difference of t ms of two gap durations can be calculated by the following formula: 15 0 difb difg difb t 2ms ----------- = difg t 2ms ----------- =
psb 2168 detailed register description semiconductor group 125 11.97 25 h r lecctl line echo cancellation control en enable 0: disabled 1: enabled md mode 0: normal 1: extended i1 input signal selection for i 1 i2 input signal selection for i 2 15 0 enmd0000 i1 i2 reset value 000000 0 0
psb 2168 detailed register description semiconductor group 126 11.97 26 h leclev minimal signal level for line echo cancellation min the parameter min for a minimal signal level l (db) can be calculated by the following formula: 15 0 0min min 512 96.3 l + () 5log2 ---------------------------------------- =
psb 2168 detailed register description semiconductor group 127 11.97 27 h lecatt externally provided attenuation att the parameter att for an externally provided attenuation a (db) can be calculated by the following formula: 15 0 0att att 512 a 5log2 ------------------- =
psb 2168 detailed register description semiconductor group 128 11.97 28 h lecmgn margin for double talk detection mgn the parameter mgn for a margin of l (db) can be calculated by the following formula: 15 0 0mgn mgn 512 l 5log2 ------------------- =
psb 2168 detailed register description semiconductor group 129 11.97 29 h r ddctl dtmf detector control en enable dtmf tone detection 0: the dtmf detection is disabled 1: the dtmf detection is enabled i1 input signal selection dtc dtmf tone code 1) undefined 15 0 en00 i1 000 dtc reset value 0000000- 1) 4 3 2 1 0 frequency digit 1 0 0 0 0 941 / 1633 d 1 0 0 0 1 697 / 1209 1 1 0 0 1 0 697 / 1336 2 1 0 0 1 1 697 / 1477 3 1 0 1 0 0 770 / 1209 4 1 0 1 0 1 770 / 1336 5 1 0 1 1 0 770 / 1477 6 1 0 1 1 1 852 / 1209 7 1 1 0 0 0 852 / 1336 8 1 1 0 0 1 852 / 1477 9 1 1 0 1 0 941 / 1336 0 1 1 0 1 1 941 / 1209 * 1 1 1 0 0 941 / 1477 # 1 1 1 0 1 697 / 1633 a 1 1 1 1 0 770 / 1633 b 1 1 1 1 1 852 / 1633 c
psb 2168 detailed register description semiconductor group 130 11.97 2a h ddtw dtmf detector signal twist twist signal twist for dtmf tone in order to obtain a minimal signal twist t the parameter twist can be calculated by the following formula: note: twist must be in the range [4096,20480] 15 0 0twist twist 32768 0.5 db t C () 10 db 10 =
psb 2168 detailed register description semiconductor group 131 11.97 2b h ddlev dtmf detector minimum signal level min minimum signal level note: values outside the given range are reserved and must not be used. 15 0 1111111111 min 5 4 3 2 1 0 description 001110 -50db 001111 -49db ... ... ... ... ... ... ... 100001 -31db 100010 -30db
psb 2168 detailed register description semiconductor group 132 11.97 2e h r fcfctl equalizer control en enable equalizer 0: the equalizer is disabled 1: the equalizer is enabled adr coefficient address 15 0 en0 adr 000 i reset value 00 0 000 0 13 12 11 10 9 8 coefficient 000000 a1 000001 a2 000010 a3 000011 a4 000100 a5 000101 a6 000110 a7 000111 a8 001000 a9 001001 b2 001010 b3 001011 b4 001100 b5 001101 b6 001 110 b7 001111 b8 010000 b9 010001 c1 010010 d1 010011 d2 010100 d3 010101 d4 01 0110 d5
psb 2168 detailed register description semiconductor group 133 11.97 i1 input signal selection 010111 d6 011000 d7 011001 d8 011010 d9 011011 d10 011100 d11 011101 d12 01 1 110 d13 011111 d14 100000 d15 100001 d16 100010 d17 100011 c2 13 12 11 10 9 8 coefficient
psb 2168 detailed register description semiconductor group 134 11.97 2f h fcfcof equalizer coefficient data v coefficient value for the coefficient a 1 -a 9 , b 2 -b 9 and d 1 -d 17 the following formula can be used to calculate v for a coefficient c : for the coefficients c 1 and c 2 the following formula can be used to calculate v for a coefficient c : 15 0 v v 32768 c =; -1c1 < v128c = ; 1 c 256 <
psb 2168 detailed register description semiconductor group 135 11.97 30 h r scctl speech coder control en enable 0: disabled 1: enabled hq high quality mode 0: long play mode 1: high quality mode vc voice controlled start of recording 0: disabled 1: enabled i1 input signal selection (first input) i2 input signal selection (second input) 1) can be changed on the fly. 15 0 en hq 1) vc000 i1 i2 reset value 000000 0 0
psb 2168 detailed register description semiconductor group 136 11.97 31 h scct2 speech coder control 2 time the parameter time for a time t ([ms]) can be calculated by the following formula: min the parameter min for a signal level l ([db]) can be calculated by the following formula: 15 0 time min time t 32 ----- - = min 16384 l 20 ----- - 10 =
psb 2168 detailed register description semiconductor group 137 11.97 32 h scct3 speech coder control 3 lp the parameter lp for a time constant of t ([ms]) can be calculated by the following formula: 15 0 0 lp 00000000 lp 256 t -------- - =
psb 2168 detailed register description semiconductor group 138 11.97 34 h r sdctl speech decoder control en enable 0: disabled 1: enabled speed playback speed 15 0 en000000000000 speed reset value 00000000000000 0 1 0 description 0 0 normal speed 0 1 0.5 times normal speed 1 0 1.5 times normal speed 1 1 2.0 times normal speed
psb 2168 detailed register description semiconductor group 139 11.97 38 h r agcctl agc control en enable 0: disabled 1: enabled i1 input signal selection for i 1 i2 input signal selection for i 2 15 0 en00000 i1 i2 reset value 000000 0 0
psb 2168 detailed register description semiconductor group 140 11.97 39 h r agcatt automatic gain control attenuation att the parameter att for an attenuation a ([db]) can be calculated by the following formula: 15 0 att reset value 0 (-100 db) att 32768 a 20 ----- - 10 =
psb 2168 detailed register description semiconductor group 141 11.97 3a h agc1 automatic gain control 1 com the parameter com for a signal level l ([db]) can be calculated by the following formula: ag_init in order to obtain an initial gain g ([db]) the parameter ag_init can be calculated by the following formula: 15 0 com ag_init com 128 10 + l6622 , + 20 ------------------------ - l -42,14 db < ; 10 l4214 , + 20 ------------------------ - l -42,14 db > ; ? ? ? = ag_init 128 10 + g1806 , + 20 ------------------------- g24db < ; 10 g602 , C 20 --------------------- - g24db > ; ? ? ? =
psb 2168 detailed register description semiconductor group 142 11.97 3b h agc2 automatic gain control 2 speedl this parameter has no dimension. it controls the regulation speed of the agc for signal levels below the comparator threshold (agc1:com). the higher the value the faster the agc. setting this parameter to 0 inhibits regulation. speedh this parameter has no dimension. it controls the regulation speed of the agc for signal levels above the comparator threshold (agc1:com). the higher the value the faster the agc. setting this parameter to 0 inhibits regulation. 15 0 speedl speedh
psb 2168 detailed register description semiconductor group 143 11.97 3c h agc3 automatic gain control 3 min the parameter min for a gain g ([db]) can be calculated by the following formula: max the parameter max for an attenuation a ([db]) can be calculated by the following formula: 15 0 min max min 128 10 + g1806 , + 20 ------------------------- g24db < ; 10 g602 , C 20 --------------------- - g24db > ; ? ? ? = max 10 a4214 , + 20 ------------------------- =
psb 2168 detailed register description semiconductor group 144 11.97 3d h agc4 automatic gain control 4 dec the parameter dec for a time constant t ([1/ms]) is given by the following formula: lim the parameter lim for a signal level l ([db]) can be calculated by the following formula: 15 0 dec lim dec 256 t -------- - = lim 128 10 + l903 , + 20 --------------------- - l 66,22 db < ; 10 l6622 , + 20 ------------------------ - l 66,22 db > ; ? ? ? =
psb 2168 detailed register description semiconductor group 145 11.97 3e h agc5 automatic gain control 5 lp the parameter lp for a time constant t ([1/ms]) is given by the following formula: 15 0 000000001 lp lp 16 t ----- - =
psb 2168 detailed register description semiconductor group 146 11.97 40 h r fctl file control md mode 0: audio mode 1: binary mode ms memory space 0: r/w memory 1: voice prompt directory ts time stamp 0: no update of rtc1/rtc2 entry of file descriptor 1: rtc1/rtc2 entries are updated by content of rtc1/rtc2 registers. fno file number 15 0 0mdmsts0000 fno reset value 00000000 0
psb 2168 detailed register description semiconductor group 147 11.97 41 h r fcmd file command in initialize 0: no 1: yes (if cmd=1111) rd remap directory 0: no 1: yes abt abort command 0: no 1: abort recompress eie enable immediate execution 0: disabled (default, always possible) 1: enabled (restricted to certain commands and operating modes) cmd file command 15 0 0inrd00000abteie0 cmd reset value 00000000000 0 4 3 2 1 0 description 0 0 0 0 0 open file 00001activate 0 0 0 1 0 seek 00011cut file 0 0 1 0 0 read data 00101write data 0 0 1 1 0 memory status 0 0 1 1 1 recompress file 0 1 0 0 0 read file descriptor - user 0 1 0 0 1 write file descriptor - user
psb 2168 detailed register description semiconductor group 148 11.97 0 1 0 1 0 read file descriptor - rtc1 0 1 0 1 1 read file descriptor - rtc2 0 1 1 0 0 read file descriptor - len 0 1 1 0 1 garbage collection 0 1 1 1 0 open next free file 0 1 1 1 1 initialize 10000dma read 1 0 0 0 1 dma write 1 0 0 1 0 erase block 1 0 0 1 1 set address 1 0 1 - - reserved 1 1 0 - - reserved 1 1 1 - - reserved 4 3 2 1 0 description
psb 2168 detailed register description semiconductor group 149 11.97 42 h r fdata file data the fdata register contains the following information after a memory status command: free free blocks number of blocks (1 kbyte) currently usable for recording. 15 0 free reset value 0
psb 2168 detailed register description semiconductor group 150 11.97 43 h r fptr file pointer 15 0 file pointer 0 0 0 0 0 phrase selector reset value 0
psb 2168 detailed register description semiconductor group 151 11.97 47h r spsctl sps control pos position of status register window mode mode of sps interface sp1 direct control for sps 1 0: sps 1 set to 0 1: sps 1 set to 1 sp0 direct control for sps 0 0: sps 0 set to 0 1: sps 0 set to 1 note: if mode 1 has been selected prior to power-down, both mode 1 and the values of sp1 and sp0 are retained during power-down and wake-up. other modes are reset to 0 during power down. 1) undefined 15 0 pos 0 0 0 0 0 0 0 mode sp1 sp0 reset value 0 0000000 0 - 1) - 1) 15 14 13 12 sps 0 sps 1 0 0 0 0 bit 0 bit 1 0 0 0 1 bit 1 bit 2 ... ... ... ... ... ... 1 1 1 0 bit 14 bit 15 4 3 2 description 0 0 0 disabled (sps 0 and sps 1 zero) 0 0 1 output of sp1 and sp0 1 0 1 expanded address output 1 1 0 output of status register
psb 2168 detailed register description semiconductor group 152 11.97 48 h r rtc1 real time clock 1 min minutes number of minutes elapsed in the current hour (0-59). sec seconds number of seconds elapsed in the current minute (0-59). 15 0 0000 min sec reset value 0000 0 0
psb 2168 detailed register description semiconductor group 153 11.97 49 h r rtc2 real time clock 2 day days number of days elapsed since last reset (0-2047). hr hours number of hours elapsed in the current day (0-23). 15 0 day hr reset value 00
psb 2168 detailed register description semiconductor group 154 11.97 4a h r dout0 data out (timeslot 0) data output data output data for pins ma 0 -ma 11 while ma 12 =1 (only if hwconfig1:app=10). note: this register cannot be read. 15 0 0000 data reset value 0000 0
psb 2168 detailed register description semiconductor group 155 11.97 4b h r dout1 data out (timeslot 1) data output data output data for pins ma 0 -ma 11 while ma 13 =1 (only if hwconfig1:app=10). note: this register cannot be read. 15 0 0000 data reset value 0000 0
psb 2168 detailed register description semiconductor group 156 11.97 4c h r dout2 data out (timeslot 2) data output data output data for pins ma 0 -ma 11 while ma 14 =1 (only if hwconfig1:app=10). note: this register cannot be read. 15 0 0000 data reset value 0000 0
psb 2168 detailed register description semiconductor group 157 11.97 4d h r dout3 data out (timeslot 3 or static mode) data output data output data for pins ma 0 -ma 11 while ma 15 =1 (only if hwconfig1:app=10). output data for pins ma 0 -ma 15 (only if hwconfig1:app=01) note: this register cannot be read. 15 0 data reset value 0
psb 2168 detailed register description semiconductor group 158 11.97 4e h din data in (timeslot 3 or static mode) data input data input data for pins ma 0 -ma 11 at falling edge of ma 12 (only if hwconfig1:app=10). input data for pins ma 0 -ma 15 (only if hwconfig1:app=01) 15 0 data
psb 2168 detailed register description semiconductor group 159 11.97 4f h r ddir data direction (timeslot 3 or static mode) dir port direction port direction during ma 12 =1 or in static mode. 0: input 1: output note: this register cannot be read. 15 0 dir reset value 0 (all inputs)
psb 2168 electrical characteristics semiconductor group 160 11.97 4 electrical characteristics electrical characteristics electrical characteristics 4.1 absolute maximum ratings esd integrity (according mil-std. 883d, method 3015.7): 2 kv exception: the pins int , sdx, du/dx, dd/dr, sps 0 , sps 1 and md 0 -md 7 are not protected against voltage stress >1 kv. note: stresses above those listed here may cause permanent damage to the device. exposure to absolute maximum ratings conditions for extended periods may affect device reliability. 4.2 dc characteristics parameter symbol limit values unit ambient temperature under bias t a -20 to 85 c storage temperature t stg C 65 to125 c supply voltage v dd -0.5 to 4.2 v supply voltage v dda -0.5 to 4.2 v supply voltage v ddp -0.5 to 6 v voltage of pin with respect to ground: xtal 1 , xtal 2 v s 0 to v dda v voltage on any pin with respect to ground v s if v ddp < 3 v: C 0.4 to v dd + 0.5 if v ddp > 3 v: C 0.4 to v ddp + 0.5 v v dd / v dda = 3.3 v 0.3 v; v ddp = 5 v 10%; v ss / v ssa = 0 v; t a = 0 to 70 c parameter symbol limit values unit test condition min. typ. max. input leakage current i il C 1.0 1.0 m a0v v in v dd h-input level (except ma 0 -ma 15 , xtal 1 ,osc 1 ) v ih1 2.0 v ddp + 0.3 v h-input level (osc 1 ) v ih2 0.8 v dd v dda + 0.3 v h-input level (ma 0 -ma 15 , mctl 1) ) v ih3 2.0 v dd v l-input level (except pins xtal 1 ,osc 1 ) v il1 C 0.3 0.8 v
psb 2168 electrical characteristics semiconductor group 161 11.97 1) mctl signals are (w /fwe , vprd /fcle, ras /foe , cas 0 /ale, cas 1 /fcs ) l-input level (osc 1 ) v il2 C 0.3 0.2 v dda v h-output level (except du/dx, dd/dr, ma 0 -ma 15 , sps 0 , sps 1 , md 0 -md 7 ) v oh1 v dd C 0.45 v i o = 2 ma h-output level (sps 0 , sps 1 , md 0 - md 7 , sdx, int ) v oh2 v dd C 0.6 v i o = 2 ma h-output level (ma 0 -ma 15 ) v oh3 v dd C 0.45 v i o = 5 ma h-output level (du/dx, dd/dr) v oh4 v dd C 0.6 v i o = 7 ma l-output level (except du/dx, dd/dr, ma 0 -ma 15 ) v ol1 0.45 v i o = C 2 ma l-output level (ma 0 -ma 15 ) (address mode or app output) v ol2 0.45 v i o = C 5 ma l-output current (ma 0 -ma 15 ) (after reset) i lo 50 150 240 m arst=1 h-output current (mctl 1) ) i ho 25 65 120 m arst=1 l-output level (pins du/dx, dd/ dr) v ol3 0.45 v i o = C 7 ma internal pullup current (frdy ) i li 350 750 1300 m a input capacitance c i 10 pf output capacitance c o 15 pf v dd supply current (power down, no refresh, no rtc) i dds1 10 50 m a v dd supply current (power down, refresh, rtc) i dds2 20 70 m a v dd supply current operating i ddo 55 70 ma v dd = 3.3 v v ddp supply current i ddp 110 m a v dd / v dda = 3.3 v 0.3 v; v ddp = 5 v 10%; v ss / v ssa = 0 v; t a = 0 to 70 c parameter symbol limit values unit test condition min. typ. max.
psb 2168 electrical characteristics semiconductor group 162 11.97 4.3 ac characteristics digital inputs are driven to 2.4 v for a logical 1 and to 0.45 v for a logical 0. timing measurements are made at 2.0 v for a logical 1 and 0.8 v for a logical 0. the ac- testing input/output waveforms are shown below. figure 55 input/output waveforms for ac-tests
psb 2168 electrical characteristics semiconductor group 163 11.97 dtmf detector parameter symbol limit values unit test condition min. typ. max. frequency deviation accept -1.5 1.5 % frequency deviation reject 3.5 -3.5 % acceptance level -45 0 db rel. to max. pcm rejection level -50 db rel. to max. pcm twist deviation accept +/-2 +/-8 db programmable noise tolerance 12 db signal duration accept 40 ms signal duration reject 23 ms gap duration accept 18 ms cpt detector parameter symbol limit values unit test condition min. typ. max. frequency acceptance range 300 640 hz frequency rejection range 800 200 hz acceptance level -45 0 db rel. to max. pcm rejection level -50 db rel. to max. pcm signal duration accept 50 ms programmable signal duration reject 10 ms caller id decoder parameter symbol limit values unit test condition min. typ. max. frequency deviation accept -2 2 % acceptance level -45 0 db rel. to max. pcm transmission rate 1188 1200 1212 baud noise tolerance -12 db
psb 2168 electrical characteristics semiconductor group 164 11.97 alert tone detector parameter symbol limit values unit test condition min. typ. max. frequency deviation accept -0.5 0.5 % atdctl1:dev=0 frequency deviation accept -1.1 1.1 % atdctl1:dev=1 frequency deviation reject 3.5 -3.5 % acceptance level -40 0 db rel. to max. pcm rejection level -5 db rel. to acceptance level twist deviation accept +/-7 db noise tolerance 20 db signal duration accept 75 ms gap duration accept 40 ms cng detector parameter symbol limit values unit test condition min. typ. max. frequency deviation accept -40 40 hz frequency deviation reject -50 50 hz acceptance level -45 0 db snr >10 db acceptance level -50 0 db snr >15 db rejection level -3 db db rel. to cnglev:min signal duration reject -1 % rel. to cngbt:time
psb 2168 electrical characteristics semiconductor group 165 11.97 status register update time the individual bits of the status register may change due to an event (like a recognized dtmf tone) or a command. the timing can be divided into four classes with these definitions the timing of the individual bits in the status register can be given as shown in table: 1) one fsc period 1) up to 30 ms if command is either sdctl:en=1 or scctl:en=1 timing diagrams table 74 status register update timing class timing comment min. max. i 0 0 immediately after command has been issued a0 125 m s 1) command has been accepted d125 m s250 m s deactivation time after command has been issued e - - associated event has happened bit rdy abt cia cd cpt cng sd err bsy dtv atv 0->1 aeeeeeeea 1) ee 1->0 i a a,d e,d e,d d e,d a e e,d e,d
psb 2168 electrical characteristics semiconductor group 166 11.97 figure 56 oscillator circuits recommended values oscillator circuits value unit min typ max load cl 1 40 pf static capacitance x 1 5pf motional capacitance x 1 17 ff resonance resistor x 1 60 w load cl 2 30 pf static capacitance x 2 1.7 pf motional capacitance x 2 3.5 ff resonance resistor x 2 18 40 k w frequency deviation 100 ppm xtal 1 xtal 2 c l1 c l1 x 1 osc 1 osc 2 c l2 c l2 x 2
psb 2168 electrical characteristics semiconductor group 167 11.97 figure 57 ssdi/iom ? -2 interface - bit synchronization timing figure 58 ssdi/iom ? -2 interface - frame synchronization timing parameter ssdi/iom ? -2 interface symbol limit values unit min max dcl period t 1 90 ns dcl high t 2 35 ns dcl low t 3 35 ns input data setup t 4 20 ns dd/dr dcl du/dx du/dx first bit last bit bit n bit n+1 t 4 t 6 t 7 t 8 t 5 t 2 t 1 t 3 fsc dcl t 9 t 10 t 9 t 10
psb 2168 electrical characteristics semiconductor group 168 11.97 input data hold t 5 20 ns output data from high impedance to active (fsc high or other than first timeslot) t 6 30 ns output data from active to high impedance t 7 30 ns output data delay from clock t 8 30 ns fsc setup t 9 40 ns fsc hold t 10 40 ns fsc jitter (deviation per frame) -200 200 ns parameter ssdi/iom ? -2 interface symbol limit values unit min max
psb 2168 electrical characteristics semiconductor group 169 11.97 figure 59 ssdi interface - strobe timing parameter ssdi interface symbol limit values unit min max dxst delay t 1 20 ns drst inactive setup t 2 20 ns drst inactive hold t 3 20 ns drst active setup t 4 20 ns drst active hold t 5 20 ns fsc setup t 6 8 dcl cycles fsc hold t 7 40 ns drst dcl t 4 t 5 t 2 t 3 fsc t 6 t 7 dxst t 1
psb 2168 electrical characteristics semiconductor group 170 11.97 figure 60 serial control interface parameter sci interface symbol limit values unit min max sclk cycle time t 1 500 ns sclk high time t 2 100 ns sclk low time t 3 100 ns cs setup time t 4 40 ns cs hold time t 5 10 ns sdr setup time t 6 40 ns sdr hold time t 7 40 ns sdx data out delay t 8 80 ns cs high to sdx tristate t 9 40 ns sclk to sdx active t 10 80 ns sclk to sdx tristate t 11 40 ns cs to int delay t 12 80 ns cs sclk sdr sdx int t 4 t 2 t 3 t 1 t 12 t 10 t 11 t 9 t 5 t 6 t 7 t 8
psb 2168 electrical characteristics semiconductor group 171 11.97 figure 61 clock master timing 1) the factor p is determined by hwconfig1:xtal (see register description) parameter afe interface symbol limit values unit min max afeclk period (hwconfig3:cm0=0) t 1 13.5*p 1) / f xtal -10 13.5*p/f xtal +10 ns afeclk period (hwconfig3:cm0=1) t 1 4.5*p/f xtal -10 4.5*p/f xtal +10 ns afeclk high t 2 4*1/f xtal afeclk low t 3 4*1/f xtal afefs output delay t 4 30 ns afefs high t 5 4*t 1 afeclk t 2 t 1 t 3 afefs t 4 t 4 t 5
psb 2168 electrical characteristics semiconductor group 172 11.97 figure 62 memory interface - dram read access parameter memory interface - dram read access symbol limit values unit min max row address setup time t 1 50 ns row address hold time t 2 50 ns column address setup time t 3 50 ns ras precharge time t 4 110 ns ras to cas delay t 5 110 2000 ns cas pulse width t 6 110 2000 ns data input setup time t 7 40 ns data input hold time t 8 0ns ma 0 -ma 13 md 0 -md 7 cas 0 ,cas 1 ras row addr. col. addr. t 1 t 2 t 3 t 6 t 7 t 8 t 5 t 4
psb 2168 electrical characteristics semiconductor group 173 11.97 figure 63 memory interface - dram write access parameter memory interface - dram write access symbol limit values unit min max row address setup time t 1 50 ns row address hold time t 2 50 ns column address setup time t 3 50 ns ras precharge time t 4 110 ns ras to cas delay t 5 110 2000 ns cas pulse width t 6 110 2000 ns data output setup time t 7 100 ns data output hold time t 8 50 ns ras to w delay t 9 50 ns w to cas setup t 10 50 ns ma 0 -ma 13 md 0 -md 7 cas 0 ,cas 1 ras row addr. col. addr. t 1 t 2 t 3 t 6 t 7 t 8 t 5 t 4 w t 9 t 10
psb 2168 electrical characteristics semiconductor group 174 11.97 figure 64 memory interface - dram refresh cycle note: the frequency of the dram refresh cycle depends on the selected mode. in active mode or normal refresh mode (during power down) the minimal frequency is 64 khz. in battery backup mode, the refresh frequency is 8 khz. parameter memory interface - dram refresh cycle symbol limit values unit min max ras precharge time t 1 100 ns ras low time t 2 200 5000 ns cas setup t 3 100 ns cas hold t 4 100 ns cas 0 ,cas 1 ras t 3 t 1 t 2 t 4
psb 2168 electrical characteristics semiconductor group 175 11.97 figure 65 memory interface - eprom read parameter memory interface - eprom read symbol limit values unit min max address setup before vprd t 1 110 ns vprd low time t 2 500 ns data setup time t 3 40 ns data hold time t 4 0ns ma 0 -ma 15 md 0 -md 7 vprd linear address t 1 t 2 t 3 t 4
psb 2168 electrical characteristics semiconductor group 176 11.97 figure 66 memory interface - samsung command write note: fcs stays low if other cycles follow for the same access. parameter memory interface - samsung command write symbol limit values unit min max address setup before fcs , fcle t 1 100 ns fcs low time, fcle high time t 2 400 ns fwr hold after fcle rising t 3 100 ns fwr low time t 4 200 ns fwr setup before fcle falling t 5 100 ns data setup time t 6 200 ns data hold time t 7 50 ns ma 0 -ma 11 md 0 -md 7 fcs (fcs 0 -fcs 3 ) a 16 -a 23 and fcs 0 -fcs 3 t 1 t 2 fwr fcle t 3 t 4 t 5 t 6 t 7
psb 2168 electrical characteristics semiconductor group 177 11.97 figure 67 memory interface - samsung address write parameter memory interface - samsung address write symbol limit values unit min max ale high time t 1 400 ns fwr hold after ale rising t 2 100 ns fwr low time t 3 200 ns fwr setup before ale falling t 4 100 ns data setup time t 5 200 ns data hold time t 6 50 ns md 0 -md 7 t 1 fwr ale t 2 t 3 t 4 t 5 t 6
psb 2168 electrical characteristics semiconductor group 178 11.97 figure 68 memory interface - samsung data write parameter memory interface - samsung data write symbol limit values unit min max fwr low time t 1 200 ns data setup time t 2 200 ns data hold time t 3 50 ns md 0 -md 7 fwr t 1 t 2 t 3
psb 2168 electrical characteristics semiconductor group 179 11.97 figure 69 memory interface - samsung data read parameter memory interface - samsung data read symbol limit values unit min max foe low time t 1 200 ns data setup time t 2 40 ns data hold time t 3 0ns md 0 -md 7 foe t 1 t 2 t 3
psb 2168 electrical characteristics semiconductor group 180 11.97 figure 70 auxiliary parallel port - multiplex mode parameter auxiliary port interface - multiplex mode symbol limit values unit min typ max active time (ma 0 -ma 15 ) t 1 2ms gap time (ma 0 -ma 15 ) t 2 125 m s data setup time t 3 50 ns data hold time t 4 0ns ma 0 -ma 11 ma 12 t 3 t 4 t 1 t 2 ma 13
psb 2168 electrical characteristics semiconductor group 181 11.97 figure 71 reset timing parameter reset timing symbol limit values unit min max v dd / v ddp / v dda rise time 5%-95% t 1 20 ms supply voltages stable to rst high t 2 0ns supply voltages stable to rst low t 3 0.1 ms rst high time t 4 1000 ns rst t 3 v dd / v ddp t 1 t 2 t 4
psb 2168 package outlines semiconductor group 182 11.97 5 package outlines plastic package, p-mqfp-80 (smd) (plastic metric quad flat package) sorts of packing package outlines for tubes, trays etc. are contained in our data book package information. dimensions in mm smd = surface mounted device
semiconductor group 183 11.97 psb 2168 index a abort clearing event .......................... 63, 96 functional description .................... 62 status bit ......................................... 87 alert tone detector electrical characteristics ............... 164 functional description .................... 28 registers ............................... 116C117 status bit ......................................... 88 aram see memory interface automatic gain control functional description .................... 40 registers ............................... 139C145 auxiliary parallel port electrical characteristics ............... 180 mode bits ........................................ 90 multiplex mode ................................ 85 registers ............................... 154C159 static mode ..................................... 85 c caller id decoder electrical characteristics ............... 163 functional description .................... 31 registers ............................... 118C119 status bits ....................................... 87 cng detector electrical characteristics ............... 164 functional description .................... 27 registers ............................... 112C115 status bit ......................................... 88 cpt detector electrical characteristics ............... 163 functional description .................... 29 registers ............................... 120C124 status bit ........................................ 88 d digital interface functional description .................... 37 mode bits ........................................ 90 dram see memory interface dtmf detector electrical characteristics .............. 163 functional description .................... 26 registers ............................... 129C131 status bit ........................................ 88 dtmf generator functional description .................... 33 registers ............................... 107C111 e eprom see memory interface equalizer functional description .................... 42 registers ............................... 132C134 execution times file commands ............................... 58 f file commands access file descriptor ................. 53 compress .................................... 52 create next new ......................... 50 delete .......................................... 52 execution times .......................... 58
semiconductor group 184 11.97 psb 2168 index new file ....................................... 50 open ............................................ 50 read binary data ......................... 54 registers ............................ 146C150 restrictions .................................. 59 seek ............................................. 51 status bits .................................... 88 tailcut .......................................... 52 write binary data ......................... 55 type audio ............................................ 45 binary ........................................... 45 phrase .......................................... 46 user data word .............................. 47 flash memory see memory interface h hardware configuration functional description .................... 63 registers ......................................... 89 i interrupt functional description .................... 61 pin configuration ............................ 89 register ........................................... 98 iom?-2 interface electrical characteristics ....... 167C168 functional description .................... 66 see also: digital interface l line echo canceller functional description .................... 24 registers ............................... 125C128 m memory interface aram/dram connection diagram .................... 77 electrical characteristics ... 172C174 refresh .................................. 79, 91 timing .......................................... 78 eprom connection diagram .................... 80 electrical characteristics ........... 175 timing .......................................... 80 flash connection diagram .................... 81 electrical characteristics ... 176C179 in-circuit programming .......... 76, 91 multiple devices ........................... 82 timing .......................................... 83 register .......................................... 97 supported devices ......................... 76 memory management activation ........................................ 49 directories ....................................... 44 executiontimes .............................. 58 files ................................................ 45 garbage collection ......................... 53 initialization ..................................... 48 memory status ................................ 53 overview ......................................... 44 status .............................................. 46 o oscillator electrical characteristics .............. 166 mode bits ........................................ 90 p power down
semiconductor group 185 11.97 psb 2168 index functional description ................. 60 status bit ......................................... 89 r real time clock configuration bits ............................ 89 functional description .................... 60 oscillator ....................................... 166 registers ............................... 152C153 recompression ................................... 52 reset electrical characteristics ............... 181 functional description .................... 60 register values ............................... 93 restrictions file commands ............................... 59 modules .......................................... 64 revision functional description .................... 63 register ........................................... 96 s serial control interface command opcodes ........................ 75 electrical characteristics ............... 170 functional description .................... 72 signals encoding ......................................... 94 reference table ............................. 94 speech coder functional description .................... 34 registers ............................... 135C137 speech decoder functional description .................... 36 register ......................................... 138 sps outputs functional description .................... 60 register ........................................ 151 ssdi interface electrical characteristics ...... 167C169 functional description .................... 70 see also: digital interface status register definition ......................................... 87 update timing .............................. 165 u universal attenuator functional description .................... 39 register ........................................ 106


▲Up To Search▲   

 
Price & Availability of PSB2168

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X